About Question enthuware.ocpjp.v11.2.1770 :

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

Moderator: admin

Post Reply
kaleemkhan.java
Posts: 2
Joined: Mon May 30, 2022 1:48 pm
Contact:

About Question enthuware.ocpjp.v11.2.1770 :

Post by kaleemkhan.java »

It will compile and print 30.

But answer is mentioned as Compilation error.

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

Re: About Question enthuware.ocpjp.v11.2.1770 :

Post by admin »

Please make sure you have copied the code exactly as given.
If you like our products and services, please help us by posting your review here.

asi-aal
Posts: 10
Joined: Wed Nov 23, 2022 3:40 am
Contact:

Re: About Question enthuware.ocpjp.v11.2.1770 :

Post by asi-aal »

This question is not correct, please review it. It gives no compilation error and as mentioned that interface's variables are never inherited and can be accessed only by the name of the interface class.

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

Re: About Question enthuware.ocpjp.v11.2.1770 :

Post by admin »

Again, the question and the given answer/explanation are correct. Copy the code exactly as given and try compiling it from the command line.
If you like our products and services, please help us by posting your review here.

Post Reply

Who is online

Users browsing this forum: Google [Bot] and 34 guests