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
About Question enthuware.ocajp.i.v8.2.1171 :
Moderator: admin
-
- Posts: 2
- Joined: Fri Nov 27, 2015 6:52 am
- Contact:
-
- Site Admin
- Posts: 10065
- Joined: Fri Sep 10, 2010 9:26 pm
- Contact:
Re: About Question enthuware.ocajp.i.v8.2.1171 :
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.
-Paul.
If you like our products and services, please help us by posting your review here.
Who is online
Users browsing this forum: No registered users and 109 guests