1) What is an Exception in java?
2) Explain java Exception hierarchy?
3) Difference between java.lang.Exception and java.lang.Error in java?
4) Explain need for Exception handling in java?
5) Explain how can we handle Exceptions in java?
6) Can we write any statement between try,catch and finally blocks?
7) Can we write only try block without catch block in java?
8) Can we throw an Exception from Catch or Finally block in java?
9) Does finally block gets executed after returning control from try or catch blocks?
10) Why we should not use Exception for catching all Exceptions in java?
11) Can we catch all Exception using single catch block?
12) Can we write return statement in try and catch Block?
13) Can we write return statement in finally Block?
14) Can we write inner try catch block in java?
15) Can we overload methods based on Exceptions in java?
16) Explain Exception propogation in java?
17) Explain java7 ARM feature and multicatch block?
18) Difference between checked and unchecked Exceptions in java?
19) Explain throw keyword in java?
20) Explain throws keyword in java?
21) Difference between throw and throws in java?
22) Explain rules that need to follow when we override methods that throw exceptions in java?
23) Difference between final,finally and finalize in java?
24) What happens when exceptions are thrown by main method?
25) Can we have empty catch block in java?
26) Difference between ClassNotFoundException and NoClassDefFoundError in java?
27) How to write Custom exceptions in java?
28) Explain StackoverflowError with help of example in java?
29) Explain OutOfMemoryError in java and how to resolve OutOfMemoryError?
30) If a method returns before finally Block or JVM exits will it execute finally block ?
2) Explain java Exception hierarchy?
3) Difference between java.lang.Exception and java.lang.Error in java?
4) Explain need for Exception handling in java?
5) Explain how can we handle Exceptions in java?
6) Can we write any statement between try,catch and finally blocks?
7) Can we write only try block without catch block in java?
8) Can we throw an Exception from Catch or Finally block in java?
9) Does finally block gets executed after returning control from try or catch blocks?
10) Why we should not use Exception for catching all Exceptions in java?
11) Can we catch all Exception using single catch block?
12) Can we write return statement in try and catch Block?
13) Can we write return statement in finally Block?
14) Can we write inner try catch block in java?
15) Can we overload methods based on Exceptions in java?
16) Explain Exception propogation in java?
17) Explain java7 ARM feature and multicatch block?
18) Difference between checked and unchecked Exceptions in java?
19) Explain throw keyword in java?
20) Explain throws keyword in java?
21) Difference between throw and throws in java?
22) Explain rules that need to follow when we override methods that throw exceptions in java?
23) Difference between final,finally and finalize in java?
24) What happens when exceptions are thrown by main method?
25) Can we have empty catch block in java?
26) Difference between ClassNotFoundException and NoClassDefFoundError in java?
27) How to write Custom exceptions in java?
28) Explain StackoverflowError with help of example in java?
29) Explain OutOfMemoryError in java and how to resolve OutOfMemoryError?
30) If a method returns before finally Block or JVM exits will it execute finally block ?
No comments:
Post a Comment