About Question enthuware.ocpjp.v8.2.1824 :
Posted: Sat Jul 16, 2016 8:24 am
Hi
I think the explanation of "1Z0-809, Test 2, question 54" contains a typo: the <X> declaration is mandatory before the return type.
Peter
I think the explanation of "1Z0-809, Test 2, question 54" contains a typo: the <X> declaration is mandatory before the return type.
Peter
public static <X> PlaceHolder<X, X> getDuplicateHolder(X x){
return new PlaceHolder<>(x, x); //use diamond operator because we already know that X is a generic type.
}