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 java dot?
Can java arraylist hold different types?
What does those terms actually mean included in the j.d.k i.6?
Does treeset use compareto?
How do you create a reference in java?
how to open and edit XML file in Weblogic???
What are the basic concepts of OOPS in java?
In which order the iterator iterates over collection?
Can an integer be a string?
Can an object be null?
Explain the private protected method modifier?
Can we have multiple catch block for a try block?
What occurs when an object is constructed?
'A class is a template for an object' explain this statement.
What is jvm? Why is java called the platform independent programming language?