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 / james n saikay
Three
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
What does += mean in java?
What is string pool in java?
What are controls and their different types in awt?
What is derived datatype?
I want to re-reach and use an object once it has been garbage collected. How it's possible?
What is the functionability stubs and skeletons?
What will happen when using pass by reference in java?
Is special character in java?
Explain about the dynamic behavior of core java?
How do you use spaces in java?
What is multi-catch block in java?
What is bubble sorting in java?
What is your platform?s default character encoding and how to know this?
What is n in java?
What is a class variable?