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 is string value?
Explain the difference between arraylist and linkedlist in java?
How many bytes is a string?
How java is similar to c?
Why super is first line in java?
What is the biggest integer?
What is the use of arraylist in java?
What is the use of singleton?
Which graphs are functions?
How do generics work?
What is boolean strategy?
What are the two types of streams offered by java 8?
What are the approaches that you will follow for making a program very efficient?
Are maps ordered java?
What is the reason behind using constructors and destructors?