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

All the posts and topics that contain only an error report will be moved here after the error is corrected. This is to ensure that when users view a question in ETS Viewer, the "Discuss" button will not indicate the presence of a discussion that adds no value to the question.

Moderators: Site Manager, fjwalraven

Post Reply
Sergey
Posts: 39
Joined: Sat Jul 29, 2017 1:04 pm
Contact:

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

Post by Sergey »

The problem with the code is that since Foo extends FooBase, Foo gets the static method bar() from FooBar(FooBase) in its scope and since Foo also says it implements Bar interface, it needs to have an instance method bar() with the same signature.
misspell?

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

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

Post by admin »

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

shambhavi
Posts: 25
Joined: Fri Aug 04, 2017 12:21 am
Contact:

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

Post by shambhavi »

this might be silly but just making a mention :

first option has : Add this method in class Foo - public void bar(){ } ;
why is the semicolon there at the end ?

even without ; it will be a wrong option only. but just thought of mentioning.

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

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

Post by admin »

Extra semicolon is not a problem. It is ignored by the compiler.
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 13 guests