About Question enthuware.ocpjp.v7.2.1251 :

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

Moderator: admin

Post Reply
a325974
Posts: 1
Joined: Sun Aug 10, 2014 1:32 am
Contact:

About Question enthuware.ocpjp.v7.2.1251 :

Post by a325974 »

Type A implements method process().
Both interface and abstract class can implement methods. Interface can do it by default method. So, I think, that correct answer is "A may be an abstract class or an interface.". Why not?

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

Re: About Question enthuware.ocpjp.v7.2.1251 :

Post by admin »

Interface cannot implement anything. Remember that this exam is for Java 7.

HTH,
Paul.
If you like our products and services, please help us by posting your review here.

Varior
Posts: 2
Joined: Sat Nov 15, 2014 11:13 pm
Contact:

Re: About Question enthuware.ocpjp.v7.2.1251 :

Post by Varior »

A must implement an interface. - isn't it true? Type A implements method process(). Or it can be impemented from another abstract class?

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

Re: About Question enthuware.ocpjp.v7.2.1251 :

Post by admin »

Implementing a method doesn't mean implementing an interface. It just means that the class has a non-abstract method. In other words, the class has proper working code for that method. Whether that method is a part of some other interface or abstract class is irrelevant.

HTH,
Paul.
If you like our products and services, please help us by posting your review here.

Varior
Posts: 2
Joined: Sat Nov 15, 2014 11:13 pm
Contact:

Re: About Question enthuware.ocpjp.v7.2.1251 :

Post by Varior »

Thanks, Paul!

Post Reply

Who is online

Users browsing this forum: admin, Bing [Bot] and 114 guests