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
What is method overloading in JAVA? Why is it not present in C ?
What is byte data type?
What do you mean by stream pipelining in java 8?
If try block is successfully executed, Then Is Finally block executed?
Can we overload destructor in java?
Which sorting algorithm is in place?
Describe the term diamond problem.
What is class and object in java?
Why isn’t there operator overloading?
Can we override static methods in java?
how to write a program for sending mails between client and server
Which java ide is used the most?
What is local class in java?
What is a parameter example?
What is remote method invocation (rmi)?