Sail E0 Webinar
Question
Determine output:public class Test{ int a = 10; public void method(int a){ a += 1; System.out.println(++a); } public static void main(String args[]){ Test t = new Test(); t.method(3); }}
Options:
A .  11
B .  5
C .  None of these
D .  12
E .  4
Answer: Option B

Submit Your Solution Below and Earn Points !

Submit Solution

Your email address will not be published. Required fields are marked *

Latest Videos

Latest Test Papers