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

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

Moderator: admin

Post Reply
zunayeed
Posts: 10
Joined: Fri Jun 28, 2019 10:58 am
Contact:

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

Post by zunayeed »

One of the answers for this question is :
@Override
void moo();
My question is if I do not provide the @override sign, will it be considered as override considering both the moo() methods are in two different interface ?
Specifically for this question, If I define another class that implements both the interfaces- my question is- will it override both the interfaces or just the @override sign interfaces, ? Thank you.

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

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

Post by admin »

Please post exact code to show what you are talking about to make sure we understand your query correctly before answering.

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

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

Post by admin »

@Override annotation is optional, FYI. It is not required. If a method is a valid override, then it is a valid override irrespective of the annotation.

af1981
Posts: 10
Joined: Thu Jun 04, 2020 3:19 pm
Contact:

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

Post by af1981 »

Hello,
yesterday I downloaded the latest 1z0-815.ets file from your web site. You indicate as correct answer:

private void foo(){ };

but when I show it into my application I saw it like "private void foo()[];". If I'm copying and pasting it, finally I can see {}. Why? i'm looking forward to reading an answer from you. Thanks for your support. Have a good day and a good work.

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

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

Post by admin »

I am sorry, I did not understand your question. Are u saying that you see [ ] instead of { } ? Please post a screenshot.

af1981
Posts: 10
Joined: Thu Jun 04, 2020 3:19 pm
Contact:

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

Post by af1981 »

Hello, it should be correct: the line shadows the correct {}. See the attachment
Attachments
Image.jpg
Image.jpg (3.89 KiB) Viewed 2373 times

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

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

Post by admin »

No, that is correct. It is { }. But you have a strike through on that line that is why you are seeing [ ]. The ----- is hiding the middle part. So, { } looks like { }.

Post Reply

Who is online

Users browsing this forum: No registered users and 13 guests