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

Given:
What is the result?

  1. nothing
  2. It fails to compile.
  3. 0
  4. A java.lang.IllegalArgumentException is thrown.
  5. 10

Answer(s): B



Given:



Which two changes need to be made to make this class compile? (Choose two.)

  1. Change Line 1 to an abstract class:public abstract class API {
  2. Change Line 2 access modifier to protected:protected void checkValue(Object value)throws IllegalArgumentException;
  3. Change Line 1 to a class:public class API {
  4. Change Line 1 to extend java.lang.AutoCloseable:public interface API extends AutoCloseable {
  5. Change Line 2 to an abstract method:public abstract void checkValue(Object value)throws IllegalArgumentException;

Answer(s): C,E



Which two modules include APIs in the Java SE Specification? (Choose two.)

  1. java.logging
  2. java.desktop
  3. javafx
  4. jdk.httpserver
  5. jdk.jartool

Answer(s): A,D


Reference:

https://docs.oracle.com/javase/9/docs/api/overview-summary.html



Given:



What is the output?

  1. 300
  2. Exception
  3. 200
  4. 100

Answer(s): A






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

1Z0-819 Exam Discussions & Posts