About Question enthuware.ocajp.i.v7.2.1087 :

All the posts and topics that contain only an error report will be moved here after the error is corrected. This is to ensure that when users view a question in ETS Viewer, the "Discuss" button will not indicate the presence of a discussion that adds no value to the question.

Moderators: Site Manager, fjwalraven

Post Reply
JuergGogo
Posts: 28
Joined: Mon Sep 25, 2017 8:16 am
Contact:

About Question enthuware.ocajp.i.v7.2.1087 :

Post by JuergGogo »

I don't agree about the constructors. The first one takes primitive values (f.e. Integer->int) and the second one accepts String.

admin
Site Admin
Posts: 10036
Joined: Fri Sep 10, 2010 9:26 pm
Contact:

Re: About Question enthuware.ocajp.i.v7.2.1087 :

Post by admin »

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.
You are right, Juerg. I have updated my response above.
If you like our products and services, please help us by posting your review here.

__JJ__
Posts: 125
Joined: Thu Jul 05, 2018 6:44 pm
Contact:

Re: About Question enthuware.ocajp.i.v7.2.1087 :

Post by __JJ__ »

Hi
In the explanation it is written:
Right operand of instanceof MUST be a class name.
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.

admin
Site Admin
Posts: 10036
Joined: Fri Sep 10, 2010 9:26 pm
Contact:

Re: About Question enthuware.ocajp.i.v7.2.1087 :

Post by admin »

You are right. It should actually be "reference type name", which include class, interface, or an enum.
Fixed.
thank you for your feedback!
If you like our products and services, please help us by posting your review here.

Post Reply

Who is online

Users browsing this forum: No registered users and 29 guests