Declarations and Access Control Logic
© examsiri.com
Question : 9 of 29
Marks:
+1,
-0
Given:
What is the result?
1. interface DeclareStuff {
2.   public static final int EASY = 3;
3.   void doStuff(int t); }
4. public class TestDeclare implements DeclareStuff {
5.   public static void main(String [] args) {
6.    int x = 5;
7.    new TestDeclare().doStuff(++x);
8.   }
9.   void doStuff(int s) {
10.    s += EASY + ++s;
11.    System.out.println("s " + s);
12.   }
13. }What is the result?
Go to Question: