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 / balamurugan
Three is answer.
Is This Answer Correct ? | 2 Yes | 2 No |
Post New Answer View All Answers
How do you escape in java?
What does exp mean in math?
Is char a data type in java?
What is a bubble sort in java?
Explain about exception propagation?
Explain the significance of class loaders in bootstrap?
Why collection is called framework in java?
How to perform quicksort in java?
What does file separator do in java?
What is string data?
What are the methods available in a class?
What is the common usage of serialization? What exceptions occur during serialization?
what is the use of pojo (plain old java objects)? how it is interact with crystal reports? pls urgent
What is a double vs float?
Is array a class in java?