Free Oracle 1Z0-819 Exam Questions (page: 12)

Given:



What is the result?

  1. WorkingUnknown
  2. Unknown
  3. TuesdayUnknown
  4. The compilation fails.
  5. Tuesday
  6. Working

Answer(s): B

Explanation:



Given:



Which code, when inserted at one or more marked positions, would allow classes B and C to compile?

  1. @Override // position 3void x () {} // position 3@Override // position 3public void z() { } // position 3
  2. @Override // position 2public void z() { } // position 3
  3. implements A // position 1@Override // position 2
  4. public void z() { } // position 3

Answer(s): B



Given:



Which is true?

  1. The code compiles but does not print any result.
  2. The code prints 25.
  3. The code does not compile.
  4. The code throws an exception at runtime.

Answer(s): C



Which two statements are correct about modules in Java? (Choose two.)

  1. java.base exports all of the Java platforms core packages.
  2. module-info.java can be placed in any folder inside module-path.
  3. A module must be declared in module-info.java file.
  4. module-info.java cannot be empty.
  5. By default, modules can access each other as long as they run in the same folder.

Answer(s): A,C


Reference:

http://tutorials.jenkov.com/java/modules.html



Viewing page 12 of 66



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

1Z0-819 Exam Discussions & Posts