Free Oracle 1Z0-808 Exam Braindumps (page: 2)

Given the code fragment:


What is the result?

  1. 10 : 10
  2. 5 : 5
  3. 5 : 10
  4. Compilation fails

Answer(s): A



Given:




What is the result?

  1. box
  2. nbo
  3. bo
  4. nb
  5. An exception is thrown at runtime

Answer(s): E



Which three are advantages of the Java exception mechanism?

  1. Improves the program structure because the error handling code is separated from the normal program function
  2. Provides a set of standard exceptions that covers all the possible errors
  3. Improves the program structure because the programmer can choose where to handle exceptions
  4. Improves the program structure because exceptions must be handled in the method in which they occurred
  5. Allows the creation of new exceptions that are tailored to the particular program being created

Answer(s): A,C,E



Given the code fragment:



What is the result?

  1. Jesse 25
    Walter 52
  2. Compilation fails only at line n1
  3. Compilation fails only at line n2
  4. Compilation fails at both line n1 and line n2

Answer(s): D






Post your Comments and Discuss Oracle 1Z0-808 exam prep with other Community members:

1Z0-808 Exam Discussions & Posts