About Question enthuware.ocajp.i.v7.2.1087 :
Moderators: Site Manager, fjwalraven
-
- Posts: 28
- Joined: Mon Sep 25, 2017 8:16 am
- Contact:
About Question enthuware.ocajp.i.v7.2.1087 :
I don't agree about the constructors. The first one takes primitive values (f.e. Integer->int) and the second one accepts String.
-
- Site Admin
- Posts: 10036
- Joined: Fri Sep 10, 2010 9:26 pm
- Contact:
Re: About Question enthuware.ocajp.i.v7.2.1087 :
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.
If you like our products and services, please help us by posting your review here.
-
- Posts: 125
- Joined: Thu Jul 05, 2018 6:44 pm
- Contact:
Re: About Question enthuware.ocajp.i.v7.2.1087 :
Hi
In the explanation it is written:
In the explanation it is written:
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.
-
- Site Admin
- Posts: 10036
- Joined: Fri Sep 10, 2010 9:26 pm
- Contact:
Re: About Question enthuware.ocajp.i.v7.2.1087 :
You are right. It should actually be "reference type name", which include class, interface, or an enum.
Fixed.
thank you for your feedback!
Fixed.
thank you for your feedback!
If you like our products and services, please help us by posting your review here.
Who is online
Users browsing this forum: No registered users and 25 guests