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
How do you remove duplicates from an array in java?
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.
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?
Explain a situation where finally block will not be executed?
What is are packages?
Difference between Primary key and unique key?
What is assembly condition codes?
What is quick sort in java?
Explain the concept of hashtables?
Explain java coding standards for methods?
What are the important features of Java 9 release?
What are dot operator queries?