About Question enthuware.ocpjp.v8.2.1487 :

Help and support on OCA OCP Java Programmer Certification Questions
1Z0-808, 1Z0-809, 1Z0-815, 1Z0-816, 1Z0-817

Moderator: admin

Post Reply
RoyEL1
Posts: 10
Joined: Tue Aug 09, 2011 3:23 pm

About Question enthuware.ocpjp.v8.2.1487 :

Post by RoyEL1 »

I'm using NetBeans (latest version) and I have a question about interpretation of an error message related to this question.

public void addData1(List<? super Dooby> dataList) {
// incompatible types: CAP#1 cannot be converted to Booby
// where CAP#1 is a fresh variable type:
// CAP#1 extends Object super: Dooby from capture of ? super Dooby
b = dataList.get(0);
}

Would you read this CAP#1 is the variable that was "captured" during compilation, #1 being the first in this statement? What do you think they mean by "fresh" variable type?
Hope you can help.

Post Reply

Who is online

Users browsing this forum: No registered users and 4 guests