About Question enthuware.ocajp.i.v7.2.1087 :
Posted: Mon Oct 09, 2017 9:43 am
I don't agree about the constructors. The first one takes primitive values (f.e. Integer->int) and the second one accepts String.
Java Certification Resources and Java Discussion Forum
https://enthuware.com/forum/
You are right, Juerg. I have updated my response above.JuergGogo wrote:I don't agree about the constructors. The first one takes primitive values (f.e. Integer->int) and the second one accepts String.
Of course, the right operand can also be an interface, and furthermore my understanding is that this is important because what the compiler allows for interfaces (ie what it will allow to compile) is different to what it allows for classes.Right operand of instanceof MUST be a class name.