Search your topic in Java2share
Servlets & JSP
Exception Handling FAQs
Q1. What is an Exception?
Q2. What is the purpose of Exception Handling?
Q3. What is the meaning of Exception Handling?
Q4. Explain Default Exception Handling Mechanism in java?
Q5. What is the purpose of try?
Q6. What is the purpose of catch block?
Q7. Is try with multiple catch block is possible?
Q8. If try with multiple catch block present is order of catch blocks important in which order we have to take?
Q9. What are various methods to print Exception information? and differentiate them.
Q10. If an exception rised inside catch block then what will happen?
Q11. Is it possible to take try, catch inside try block?
Q12. Is it possible to take try, catch inside catch block?
Q13. Is it possible to take try without catch?
Q14. What is the purpose of finally block?
Q15. Is finally block will be execute always?
Q16. In which situation finally block will not executed?
Q17. If return statement present inside try is finally block will be executed?
Q18. What is the difference between final, finally and finalize()?
Q19. Is it possible to write any statement between try-catch and finally?
Q20. Is it possible to take two finally blocks for the same try?
Q21. Is syntax try-finally-catch is valid ?
Q22. What is the purpose of throw?
Q23. Is it possible to throw an Error?
Q24. Is it possible to throw any java object?
Q25. After throw is it allow to take any statement directly?
Q26. What is the purpose of throws?
Q27. What is the difference between throw and throws?
Q28. What is the difference between throw and thrown?
Q29. Is it possible to use throws keyword for any java class?
Q30. If we are taking catch block for an exception but there is no chance of rising that exception in try then what will happen?
Q31. Explain Exception Handling keyword?
Q32. Which class act as root for entire java Exception hierarchy?
Q33. What is the difference between Error and Exception?
Q34. What is difference between checked exception and unchecked exception?
Q35. What is difference between partially checked and fully checked Exception?
Q36. What is a customized Exception?
Q37. Explain the process of creating the customized Exception.
Q38.Explain control flow in try, catch, finally.
Q39. Can you give the most common occurred exception in your previous project.
Q40. Explain the cases where you used Exception Handling in your previous project?