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

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

Moderator: admin

Post Reply
matheusdallrosa
Posts: 5
Joined: Sat Dec 28, 2019 8:34 am
Contact:

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

Post by matheusdallrosa »

Hi, in my opinion the fourth option should be correct, because the @Override anotation should be when the method correctly overrides some other method, but in this case the method is not correctly overriding some other method.

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

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

Post by admin »

I see your point but even if you remove @override, the code will still not compile. But if you fix the access modifier of the subclass method, then it will compile. This means, the @Override is not the problem here. Since you have to select only 1 option, option 2 is best.

matheusdallrosa
Posts: 5
Joined: Sat Dec 28, 2019 8:34 am
Contact:

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

Post by matheusdallrosa »

I see your point but i was using the option to not know the amount of correct options to check. I will take what you said in consideration. Thank you.

Post Reply

Who is online

Users browsing this forum: No registered users and 14 guests