Free Oracle 1Z0-819 Exam Questions

Given:



What is the result?

  1. A ClassCastException is thrown at runtime.
  2. AnotherClass#methodA()AnotherClass#methodA()
  3. The compilation fails.
  4. SomeClass#methodA()AnotherClass#methodA()
  5. AnotherClass#methodA()SomeClass#methodA()
  6. SomeClass#methodA()SomeClass#methodA()

Answer(s): C

Explanation:



Which two statements are correct about try blocks? (Choose two.)

  1. A try block can have more than one catch block.
  2. A finally block in a try-with-resources statement executes before the resources declared are closed.
  3. A finally block must be immediately placed after the try or catch blocks.
  4. A try block must have a catch block and a finally block.
  5. catch blocks must be ordered from generic to specific exception types.

Answer(s): A,C



Given:



What is the output?

  1. I am an object array
  2. The compilation fails due to an error in line 1.
  3. I am an array
  4. I am an object

Answer(s): D



Given:



What is the result?

  1. The compilation fails.
  2. 1.99,2.99,0
  3. 1.99,2.99,0.0
  4. 1.99,2.99

Answer(s): A

Explanation:



Viewing page 10 of 66



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

1Z0-819 Exam Discussions & Posts