Page 1 of 1

About Question enthuware.ocpjp.v8.2.1487 :

Posted: Wed Aug 03, 2016 9:58 am
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.