Chapter 8Handling Exceptions

THE OCA EXAM TOPICS COVERED IN THIS PRACTICE TEST INCLUDE THE FOLLOWING:

  • Handling Exceptions
    • Differentiate among checked exceptions, unchecked exceptions, and Errors
    • Create a try-catch block and determine how exceptions alter normal program flow
    • Describe the advantages of Exception handling
    • Create and invoke a method that throws an exception
    • Recognize common exception classes (such as NullPointerException, ArithmeticException, ArrayIndexOutOfBoundsException, ClassCastException)
  1. What is the result of compiling and executing the following application?

    package mind;
    public class Remember {
     public static ...

Get OCA / OCP Java SE 8 Programmer Practice Tests now with the O’Reilly learning platform.

O’Reilly members experience live online training, plus books, videos, and digital content from nearly 200 publishers.