What happens if a try-catch-finally statement does not have a catch clause to handle an exception that is thrown within the body of the try statement?


No Answer is Posted For this Question
Be the First to Post Answer

Post New Answer

More Core Java Interview Questions

How do you remove duplicates from an array in java?

0 Answers  


Given: 10. interface A { void x(); } 11. class B implements A { public void x() { } public voidy() { } } 12. class C extends B { public void x() {} } And: 20. java.util.List list = new java.util.ArrayList(); 21. list.add(new B()); 22. list.add(new C()); 23. for (A a:list) { 24. a.x(); 25. a.y();; 26. } What is the result? 1 Compilation fails because of an error in line 25. 2 The code runs with no output. 3 An exception is thrown at runtime. 4 Compilation fails because of an error in line 20.

3 Answers  


How HashMap implemented in java? how it internally works when values are added or searched from hashMap?What is the difference betweenthe implementation of hashmap and Linked Hashmap?

3 Answers   IBM,


Explain a situation where finally block will not be executed?

0 Answers  


What is are packages?

0 Answers  






Difference between Primary key and unique key?

4 Answers  


What is assembly condition codes?

0 Answers  


What is quick sort in java?

0 Answers  


Explain the concept of hashtables?

0 Answers  


Explain java coding standards for methods?

0 Answers  


What are the important features of Java 9 release?

0 Answers  


What are dot operator queries?

0 Answers   Atos Origin,


Categories