Page 1 of 1

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

Posted: Tue Dec 01, 2015 8:56 am
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

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

Posted: Tue Dec 01, 2015 9:19 am
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.