PDA

View Full Version : Exceptions and Assertions


  1. What is a Bug ?
  2. What is an Exception ?
  3. What is Debugging ?
  4. What are the types of Errors ?
  5. What is an Exception Object and what it contains ?
  6. What is meant by Throwing an Exception ?
  7. What is an Exception Handler ?
  8. What is a Call Stack ?
  9. How many types of Exceptions are there ?
  10. What are Checked Exceptions ?
  11. What are Unchecked Exceptions ?
  12. How can we Catch and Handle Exceptions ?
  13. Explain about Try Block ?
  14. Explain about Catch Block ?
  15. Explain about Finally Block ?
  16. In what way we put all Try, Catch and Finally Blocks ?
  17. How an Exception Thrown by a Method without Handle It ?
  18. Explain Hierarchy of the Throwable Class ?
  19. Explain about Throw Statement in Java ?
  20. What is meant by Chained Exception ?
  21. What is meant by Stack Trace ?
  22. How to Access Stack Trace Information ?
  23. What are the steps to follow to crate our own Exceptions ?
  24. What is the Difference between Throw and Throws ?
  25. What is difference between an Error and an Exception ?
  26. Does it matter in what order catch statements for FileNotFoundException and IOException are written ?
  27. What is NullpointerException? how to handle/avoid it?
  28. What is ClassNotFoundException ?
  29. When NoClassDefinitionFoundException Occur ?
  30. What is NumberFormatException ?
  31. In Java 1.5 what are Assertions ?
  32. How to solve java.lang.nosuchmethoderror in main ?
  33. How to eliminate Exception in thread main java.lang.NoClassDefFoundError ?
  34. What is the difference b/w switch default & java exception?
  35. What happens if an exception occurs in finally block??
  36. How to skip Finally Block
  37. Explain about the 'throws' keyword ?