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

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

Questions 21

Given:

1z0-819 Question 21

Which two independent changes will make the Main class compile? (Choose two.)

Options:
A.

Move the entire Student class declaration to a separate Java file, Student.java.

B.

Change line 2 to public Student(String classname).

C.

Change line 1 to public class Student {.

D.

Change line 3 to Student student = new Student(“Biology”);.

E.

Change line 1 to static class Student {.

Oracle 1z0-819 Premium Access
Questions 22

Given:

1z0-819 Question 22

executed with this command:

java Main one two three

What is the result?

Options:
A.

0). one

B.

0). one1). two2). three

C.

The compilation fails.

D.

It creates an infinite loop printing:0). one1). two1). two...

E.

A java.lang.NullPointerException is thrown.

Questions 23

Given the code fragment:

1z0-819 Question 23

What is the result?

Options:
A.

13 5 7 9

B.

1 3 5 7 9 11

C.

2 4 6 B 10

D.

2 4 6 8

Questions 24

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

Options:
A.

A try block can have more than one catch block.

B.

A finally block in a try-with-resources statement executes before the resources declared are closed.

C.

A finally block must be immediately placed after the try or catch blocks.

D.

A try block must have a catch block and a finally block.

E.

catch blocks must be ordered from generic to specific exception types.

Questions 25

Given the code fragment:

1z0-819 Question 25

What is the result?

Options:
A.

A java.lang, UnsupportedOperationException is thrown.

B.

True

C.

False

D.

A java.lang.NullPointerException is thrown.

Questions 26

Given:

1z0-819 Question 26

and the code fragment:

Which two Map objects group all employees with a salary greater than 30 by neighborhood? (Choose two.)

A)

1z0-819 Question 26

B)

1z0-819 Question 26

C)

1z0-819 Question 26

D)

1z0-819 Question 26

E)

1z0-819 Question 26

Options:
A.

Option

B.

Option

C.

Option

D.

Option

Questions 27

Given:

1z0-819 Question 27

You want to obtain the Filechannel object on line 1.

Which code fragment will accomplish this?

A)

1z0-819 Question 27

B)

1z0-819 Question 27

C)

1z0-819 Question 27

D)

1z0-819 Question 27

Options:
A.

Option A

B.

Option B

C.

Option C

D.

Option D

Questions 28

Given:

1z0-819 Question 28

and omitting the throws FooException clause results in a compilation error.

Which statement is true about FooException?

Options:
A.

FooException is a subclass of RuntimeError.

B.

FooException is unchecked.

C.

The body of foo can only throw FooException.

D.

The body of foo can throw FooException or one of its subclasses.

Questions 29

Given:

1z0-819 Question 29

What is the result?

A)

1z0-819 Question 29

B)

1z0-819 Question 29

C)

1z0-819 Question 29

D)

1z0-819 Question 29

Options:
A.

Option A

B.

Option B

C.

Option C

D.

Option D

Questions 30

Given:

1z0-819 Question 30

What is the result?

Options:
A.

b1

B.

2

C.

b2

D.

1

E.

b3

F.

3

G.

The compilation fails due to an error in line 1.

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