Winter Special - Limited Time 65% Discount Offer - Ends in 0d 00h 00m 00s - Coupon code: top65certs

1z0-819 Questions Bank

Page: 3 / 10
Total 296 questions

Java SE 11 Developer Questions and Answers

Question 9

Given:

What is the output?

Options:

A.

Hello world!Bonjour le monde!

B.

Hello world!Hello world!

C.

Bonjour le monde!Hello world!

D.

Bonjour le monde!Bonjour le monde!

Question 10

Analyze the code:

Which two options can you insert inside println method to produce Global:namescope? (Choose two.)

Options:

A.

Test.prefix+Test.name

B.

new Test().prefix+new Test().name

C.

Test.prefix+Test.getName()

D.

Test.getName+prefix

E.

prefix+Test.name

F.

prefix+name

Question 11

Given:

Which three are true? (Choose three.)

Options:

A.

b1.foo(c) prints Bonjour le monde!

B.

f1.foo(c) prints Hello world!

C.

f1.foo(c) prints Olá Mundo!

D.

b1.foo(c) prints Hello world!

E.

f2.foo(c) prints Olá Mundo!

F.

b1.foo(c) prints Olá Mundo!

G.

f2.foo(c) prints Bonjour le monde!

Question 12

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.

Page: 3 / 10
Total 296 questions