About Question enthuware.ocajp.i.v8.2.1479 :

Help and support on OCA OCP Java Programmer Certification Questions
1Z0-808, 1Z0-809, 1Z0-815, 1Z0-816, 1Z0-817

Moderator: admin

Post Reply
Denyo1986
Posts: 38
Joined: Thu Jan 07, 2021 2:47 am
Contact:

About Question enthuware.ocajp.i.v8.2.1479 :

Post by Denyo1986 »

The explanation is great, but a little inaccurate in one part if I am not mistaken. It says:
However, you still cannot have a class that implements two interfaces where both the interfaces contain a default method with the same signature unless the class provides an implementation for that method itself.
which may be true in general, but there is the special case that these two interfaces have a relationship (i.e. one extends the other). In that case, the code would compile fine (as was proven to me (the hard way :P) in another question).

I would suggest to add this exceptional case to the description just to make it complete

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

Re: About Question enthuware.ocajp.i.v8.2.1479 :

Post by admin »

Right. Added.
thank you for your feedback!
If you like our products and services, please help us by posting your review here.

Denyo1986
Posts: 38
Joined: Thu Jan 07, 2021 2:47 am
Contact:

Re: About Question enthuware.ocajp.i.v8.2.1479 :

Post by Denyo1986 »

Thank you for helping me to pass the exam :)

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

Re: About Question enthuware.ocajp.i.v8.2.1479 :

Post by admin »

Congratulations on passing!!
If you like our products and services, please help us by posting your review here.

noeloo
Posts: 61
Joined: Sat Feb 15, 2020 8:56 am
Contact:

Re: About Question enthuware.ocajp.i.v8.2.1479 :

Post by noeloo »

Therefore, volatile, transient, and synchronized do not make sense for such fields.
Putting the sense aside, isn't it impossible for a field to be declared synchronized itself? If I'm right, I feel like this should be added to the description.

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

Re: About Question enthuware.ocajp.i.v8.2.1479 :

Post by admin »

What happened when you tried it out ?
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 3 guests