Exit demo 1Z0-819 Java SE 11 Developer PDF format · free preview

Oracle 1Z0-819 - Questions & Answers

Free preview · every answer includes a full explanation

Product page: https://prepkeys.com/1z0-819.html

Question 1
Single choice

Given the code fragment:

What is the result?

A.

A java.lang, UnsupportedOperationException is thrown.

B.

True

C.

False

D.

A java.lang.NullPointerException is thrown.

Question 2
Single choice

Given:

Which is true?

A.

The code compiles but does not print any result.

B.

The code prints 25.

C.

The code does not compile.

D.

The code throws an exception at runtime.

Question 3
Multiple choice

Given:

Which two lines inserted in line 1 will allow this code to compile? (Choose two.)

A.

protected void walk(){}

B.

void walk(){}

C.

abstract void walk();

D.

private void walk(){}

E.

public abstract void walk();

Question 4
Single choice

Given:

jdeps -jdkinternals C:\workspace4\SimpleSecurity\jar\classes.jar

Which describes the expected output?

A.

jdeps lists the module dependencies and the package names of all referenced JDK internal APIs. If any are found, the suggested replacements are output in the console.

B.

jdeps outputs an error message that the -jdkinternals option requires either the - summary or the - verbose options to output to the console.

C.

The -jdkinternals option analyzes all classes in the .jar and prints all class-level dependencies.

D.

The -jdkinternals option analyzes all classes in the .jar for class-level dependencies on JDK internal APIs. If any are found, the results with suggested replacements are output in the console.

Question 5
Single choice

Given:

Which is true about line 1?

A.

If the value is not present, a NoSuchElementException is thrown at run time.

B.

It always executes the System.out::print statement.

C.

If the value is not present, a NullPointerException is thrown at run time.

D.

If the value is not present, nothing is done.

Question 6
Single choice

Given:

What is the result?

A.

b1

B.

2

C.

b2

D.

1

E.

b3

F.

3

G.

The compilation fails due to an error in line 1.

Question 7
Single choice

Given:

What is the output?

A.

A compilation error is thrown.

B.

Message from Copier: Attempt00

C.

Message from Abstract Copier: Attempt00

D.

A runtime error is thrown.

Question 8
Single choice

Given:

What is the result?

A.

2134

B.

2143

C.

214

D.

234

Question 9
Single choice

Which is true?

A.

Code compiles but throws a runtime exception when run.

B.

It prints 666.

C.

The code compiles and runs successfully but with a wrong answer (i.e., a bug).

D.

The code does not compile successfully.

Question 10
Single choice

Given:

What is the result?

A.

hat at store 1

B.

An IndexOutOfBoundsException is thrown at runtime.

C.

at once 0

D.

hat at store 4

E.

at once 1

Showing 10 of 332 questions · Unlock the full set