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


Please Help Members By Posting Answers For Below Questions

How do you escape in java?

579


What does exp mean in math?

535


Is char a data type in java?

545


What is a bubble sort in java?

547


Explain about exception propagation?

587






Explain the significance of class loaders in bootstrap?

499


Why collection is called framework in java?

540


How to perform quicksort in java?

569


What does file separator do in java?

539


What is string data?

555


What are the methods available in a class?

587


What is the common usage of serialization? What exceptions occur during serialization?

604


what is the use of pojo (plain old java objects)? how it is interact with crystal reports? pls urgent

1731


What is a double vs float?

538


Is array a class in java?

503