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 / harish
Compilation fails because of an error on
| Is This Answer Correct ? | 5 Yes | 12 No |
Post New Answer View All Answers
Is java 11 paid version?
What is local declaration?
When is the arraystoreexception thrown?
What is the largest data type in java?
Explain methods specific to list interface?
Where local and global variables are stored?
How do you implement singleton class?
What is an argument java?
What is method overloading in JAVA? Why is it not present in C ?
What is final, finally, finalize?
How do you print array in java?
how to create multithreaded program? Explain different ways of using thread? When a thread is created and started, what is its initial state? : Java thread
How do you identify independent and dependent variables?
Define class?
What is meant by vector class, dictionary class, hash table class, and property class?