Summer Special 60% Discount Offer - Ends in 0d 00h 00m 00s - Coupon code: bestdeal

Free Oracle 1z0-819 Practice Exam with Questions & Answers | Set: 6

Questions 51

Which code fragment added to line 1 enables the code to compile and print Hello Joe?

A)

1z0-819 Question 51

B)

1z0-819 Question 51

C)

1z0-819 Question 51

D)

1z0-819 Question 51

Options:
Oracle 1z0-819 Premium Access
Questions 52

Given:

1z0-819 Question 52

What is the result?

Options:
A.

Keys: 4 Values: 4 Map: 0

B.

Keys: 4 Values: 4 Map: 4

C.

The compilation fails.

D.

Keys: 0 Values: 0 Map:

E.

Keys: 0 Values: 0 Map: 0

Questions 53

A company has an existing Java app that includes two Java 8 jar files, sales-3.10. jar and clients-10.2.jar.

The jar file ,sales -8, 10, jar reference packages in clients -10.2 jar, but clients-10.2 jar does not reference packages in sales -8.10, jar.

They have decided to modularize clients-10.2.jar.

Which module-info. Java file would work for the new library version clients-10.3 jar?

A)

1z0-819 Question 53

B)

1z0-819 Question 53

C)

1z0-819 Question 53

D)

1z0-819 Question 53

Options:
A.

Option A

B.

Option B

C.

Option C

D.

Option D

Questions 54

Which code is correct?

Options:
A.

Runnable r = “Message” −> System.out.println();

B.

Runnable r = () −> System.out::print;

C.

Runnable r = () -> {System.out.println(“Message”);};

D.

Runnable r = −> System.out.println(“Message”);

E.

Runnable r = {System.out.println(“Message”)};

Questions 55

Given:

1z0-819 Question 55

And the command:

java Main Helloworld

What is the result ?

Options:
A.

Input: Echo:

B.

Input: Helloworld Echo: Helloworld

C.

Input:

Then block until any input comes from System.in.

D.

Input:

Echo: Helloworld

E.

A NullPointerException is thrown at run time.

Questions 56

Examine this excerpt from the declaration of the java.se module:

1z0-819 Question 56

What does the transitive modifier mean?

Options:
A.

Only a module that requires the java.se module is permitted to require the java.sql module.

B.

Any module that requires the java.se module does not need to require the java.sql module.

C.

Any module that attempts to require the java.se module actually requires the java.sql module instead.

D.

Any module that requires the java.sql module does not need to require the java.se module.

Questions 57

Given:

List longlist = List.of(“Hello”,”World”,”Beat”);

List shortlist = new ArrayList<>();

Which code fragment correctly forms a short list of words containing the letter “e”?

1z0-819 Question 57

Options:
A.

Option A

B.

Option B

C.

Option C

D.

Option D

Questions 58

Given:

1z0-819 Question 58

Which two methods modify field values? (Choose two.)

Options:
A.

setAllCounts

B.

setACount

C.

setGCount

D.

setCCount

E.

setTCount

Questions 59

Which is the correct order of possible statements in the structure of a Java class file?

Options:
A.

class, package, import

B.

package, import, class

C.

import, package, class

D.

package, class, import

E.

import, class, package

Questions 60

A company has an existing sales application using a Java 8 jar file containing packages:

com.company.customer;

com.company.customer.orders;

com.company.customer.info;

com.company.sales;

com.company.sales.leads;

com.company.sales.closed;

com.company.orders;

com.company.orders.pending;

com.company.orders.shipped.

To modularize this jar file into three modules, customer, sales, and orders, which module-info.java would be correct?

A)

1z0-819 Question 60

B)

1z0-819 Question 60

C)

1z0-819 Question 60

D)

1z0-819 Question 60

Options:
A.

Option A

B.

Option B

C.

Option C

D.

Option D

Exam Code: 1z0-819
Certification Provider: Oracle
Exam Name: Java SE 11 Developer
Last Update: Jul 17, 2025
Questions: 296