Black Friday Special 70% Discount Offer - Ends in 0d 00h 00m 00s - Coupon code: save70

Pass 1z0-829 Exam Guide

Page: 2 / 4
Total 50 questions

Java SE 17 Developer Questions and Answers

Question 5

Given the code fragment:

What is the result?

Options:

A.

81111

B.

8109

C.

777

D.

71010

E.

888

F.

7107

Question 6

Given the code fragment:

What is the result?

Options:

A.

Range 1

Range 2

Range 3

B.

Range1

Note a valid rank.

C.

Range 1

Range 2

Range 3

Range 1

Not a valida rank

D.

Range 1

Question 7

Given:

What is the result?

Options:

A.

4

B.

2

C.

6

D.

Nothing is printed because of an indefinite loop.

E.

Compilation fails.

F.

5

G.

A runtime exception is thrown.

Question 8

Given:

Which statement is true while the program prints GC?

Options:

A.

Only the object referenced by t2 is eligible for garbage collection.

B.

Both the objects previously referenced by t1 are eligible for garbage collection.

C.

None of the objects are eligible for garbage collection.

D.

Only one of the objects previously referenced by t1 is eligible for garbage collection.

Page: 2 / 4
Total 50 questions