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

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

Moderator: admin

Post Reply
dmcler
Posts: 2
Joined: Fri Nov 27, 2015 6:52 am
Contact:

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

Post by dmcler »

Consider the following variable declaration within the definition of an interface:   int i = 10; Which of the following declarations defined in a non-abstract class, is equivalent to the above?

right answer:
final int i = 10;

however a normal class would not be public and static in comparison to the interface method

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

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

Post by admin »

That is not the right answer. Option 3, "public static final int i = 10;" is marked as the right answer. Please let me know if you see any other option marked as correct.
-Paul.
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 109 guests