Skip To Content

Athabasca University

Review Questions

  1. What happens when you “throw” an exception?
  2. What is the advantage of a “try” block?
  3. What is the function of a “catch” block?
  4. What is the simplest way to create your own exceptions?
  5. How can you extend the exception capabilities?
  6. Where can you find descriptions of standard Java exceptions?
  7. What happens to run-time errors that are never caught?
  8. What happens to the “finally” statement when no exception is thrown?
  9. Why is the “finally” statement used?
  10. How does a lost exception occur?
  11. Why would a method say it throws an exception when it does not?
  12. What is the problem with using “finally” to handle exceptions in constructors?
  13. How does exception handling work with derived and base exception classes?
  14. What are two ways of getting a directory listing?
  15. What are four other uses of file class?
  16. What are the six types of “InputStreams”?
  17. What are the four types of “OutputStreams”?
  18. What are the four types of “FilterInputStreams”?
  19. What are the three types of “FilterOutputStreams”?
  20. What is the function of a buffered input?
  21. Name one way of reading input from memory.
  22. How are the two primary output streams distinguished?
  23. How do you redirect I/O in Java?
  24. What is the function of “Regular Expressions”?
  25. What is the function of “StringTokenizer”?

Updated July 30 2020 by FST Course Production Staff