Given:
11. public static void main(String[] args) {
12. Integer i = uew Integer(1) + new Integer(2);
13. switch(i) {
14. case 3: System.out.println(”three”); break;
15. default: System.out.println(”other”); break;
16. }
17. }
‘What is the result?
1 three
2 other
3 An exception is thrown at runtime.
4 Compilation fails because of an error on
line 12.
Answer Posted / harish
Compilation fails because of an error on
| Is This Answer Correct ? | 5 Yes | 12 No |
Post New Answer View All Answers
What is the disadvantage of synchronization?
What is public static void main?
What is math exp in java?
What are anonymous inner classes?
What are different access specifiers in java? Explain
Why is inheritance used in java?
Explain the JDB in depth & command line.
Are variables stored in ram?
How do you represent a space in regex java?
What is string subsequence method?
What is enhanced loop in java?
What is a char in java?
what is a green thread? : Java thread
difference between byte stream class and character stream class?
Differentiate storage classes on the basis of their scope?