Page 1 of 1

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

Posted: Mon Jul 29, 2019 12:51 pm
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.

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

Posted: Mon Jul 29, 2019 12:56 pm
by admin
Please post exact code to show what you are talking about to make sure we understand your query correctly before answering.

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

Posted: Mon Jul 29, 2019 12:57 pm
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.

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

Posted: Tue Jun 16, 2020 12:50 pm
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.

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

Posted: Tue Jun 16, 2020 11:07 pm
by admin
I am sorry, I did not understand your question. Are u saying that you see [ ] instead of { } ? Please post a screenshot.

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

Posted: Wed Jun 17, 2020 5:37 am
by af1981
Hello, it should be correct: the line shadows the correct {}. See the attachment

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

Posted: Wed Jun 17, 2020 5:57 am
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 { }.