Language Fundamentals
© examsiri.com
Question : 17 of 24
Marks:
+1,
-0
Given:
What is the output from line 5 of the Test class?
1. public class Test{
2.int a = 10;
3.public void method(int a){
4. a += 1;
5. System.out.println(++a);
6.}
7.public static void main(String args[]){
8. Test t = new Test();
9. t.method(5);
10. }
11.} What is the output from line 5 of the Test class?
Go to Question: