Summer Sale Limited Time 65% Discount Offer - Ends in 0d 00h 00m 00s - Coupon code: ecus65

Oracle 1z0-819 - Java SE 11 Developer

Page: 7 / 9
Total 296 questions

Given:

What is the result?

A.

nothing

B.

0

C.

10

D.

0 4 9

Given:

LocalDate d1 = LocalDate.of(1997,2,7);

DateTimeFormatter dtf =

DateTimeFormatter.ofPattern( /*insert code here*/ );

System.out.println(dtf.format (d1));

Which pattern formats the date as Friday 7th of February 1997?

A.

“eeee dd+”th of”+ MMM yyyy”

B.

“eeee dd'th of' MMM yyyy”

C.

“eeee d+”th of”+ MMMM yyyy”

D.

“eeee d’th of’ MMMM yyyy”

Given:

Which two are secure serialization of these objects? (Choose two.)

A.

Define the serialPersistentFields array field.

B.

Declare fields transient.

C.

Implement only readResolve to replace the instance with a serial proxy and not writeReplace.

D.

Make the class abstract.

E.

Implement only writeReplace to replace the instance with a serial proxy and not readResolve.

Given:

You want to implement the java. Io, serializable interface to the MypersisteneData class.

Which method should be overriden?

A.

The readExternal and writeExternal method

B.

The readExternal method

C.

The writeExternal method

D.

nothing

Given:

Why does D cause a compilation error?

A.

D inherits a() only from C.

B.

D inherits a() from B and C but the return types are incompatible.

C.

D extends more than one interface.

D.

D does not define any method.

Given:

What is the result?

A.

The compilation fails.

B.

-3

C.

An exception is thrown at runtime.

D.

-2

Given:

What is the result?

A.

Take extra care

B.

The program prints nothing.

C.

Take extra care

Take extra care

D.

An exception is thrown at runtime

Given the code fragment:

What is the result?

A.

An ArrayIndexOutofBoundsException is thrown at runtime.

B.

The compilation fails.

C.

gh ij kl

D.

gj hk il

E.

ghi jkl

Given the code fragment:

What is the result?

A.

13 5 7 9

B.

1 3 5 7 9 11

C.

2 4 6 B 10

D.

2 4 6 8

Given:

Which statement on line 1 enables this code fragment to compile?

A.

Function function = String::toUpperCase;

B.

UnaryOperator function = s −> s.toUpperCase();

C.

UnaryOperator function = String::toUpperCase;

D.

Function function = m −> m.toUpperCase();