Page 1 of 1

About Question enthuware.ocpjp.i.v11.2.3149 :

Posted: Sun Jul 12, 2020 8:55 am
by makarovd89
Which of the following are valid?

(Assume the method bodies are valid.)

Note: The topic of generics is not mentioned in exam objectives. However, we have seen candidates getting questions that expect basic idea of generics. It is possible that such questions are unscored (i.e. your answer to these questions are not considered while computing your final score.)

public void BiFunction<Integer, String, Double> getBF(){ ...  }

Does this method have return 2 types?
Is it really valid?

Re: About Question enthuware.ocpjp.i.v11.2.3149 :

Posted: Sun Jul 12, 2020 9:26 am
by admin
No, void should be deleted. Fixed.
thank you for your feedback!