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

Oracle 1z0-829 - Java SE 17 Developer

Page: 1 / 2
Total 50 questions

Which statement is true?

A.

IllegalStateException is thrown if a thread in waiting state is moved back to runnable.

B.

thread in waiting state consumes CPU cycles.

C.

A thread in waiting state must handle InterrupedException.

D.

After the timed wait expires, the waited thread moves to the terminated state.

Given the code fragment:

Which two statements at Line nl independently enable you to print 1250?

A.

Integer res = 250 + integer.parseint (s)

B.

Integer res = 250 + s:

C.

Integer res = 250 + integer (s2):

D.

Integer res= 250 + s2;

E.

Integer res = 250 + integer . valueof (s);

F.

Integer res = 250;

Res = + s2;

Given:

Which two should the module-info file include for it to represent the service provider interface?

A.

Requires cm.transport.vehicle,cars:

B.

Provides.com.transport.vehicle.cars.Car with com.transport.vehicle.cars. impt, CatImpI;

C.

Requires cm.transport.vehicle,cars:

D.

Provides.com.transport.vehicle.cars.Car impl,CarImp1 to com.transport.vehicle.cars. Cars

E.

exports com.transport.vehicle.cars.Car;

F.

Exports com.transport.vehicle.cars;

G.

Exports com.transport.vehicle;

Given:

Which action enables the code to compile?

A.

Replace 15 with item.display (''Flower'');

B.

Replace 2 with static string name;

C.

Replace 7 with public void display (string design) {

D.

Replace 3 with private static void display () {

Given the code fragment:

Which code fragment returns different values?

A.

int sum = listOfNumbers. parallelStream () reduce (5, Integer:: sum) ;

B.

int sum = listOfNumbers. Stream () reduce (5, (a, b) -> a + b) ;

C.

int sum = listOfNumbers. Stream () reduce ( Integer:: sum) ; +5;

D.

int sum = listOfNumbers. parallelStream () reduce ({m, n) -> m +n) orElse (5) +5;

E.

int sum = listOfNumbers. Stream () reduce (0, Integer:: sum) + 5

Given:

What is the result?

A.

User name (US)

B.

The program throws a MissingResourceException.

C.

User name (EN – US)

D.

UserName

E.

User name (EN)

Given the code fragment:

Which code line n1, obtains the java.io.Console object?

A)

B)

C)

D)

E)

A.

Option A

B.

Option B

C.

Option C

D.

Option D

E.

Option E

Given the code fragment:

What is the result:

A.

ADEABCB // the order of element is unpredictable

B.

ABCE

C.

ABCDE // the order of elements is unpredictable

D.

ABBCDE // the order of elements is unpredictable

Given the code fragment:

What is the result?

A.

$SIM6D

B.

PT5000PT60MP6D

C.

PT5SPTIMP6D

D.

5000$60M6D

Given the code fragment:

Which action enables the code to compile?

A.

Replace record with void.

B.

Remove the regNO initialization statement.

C.

Make the regNo variable static.

D.

Replace thye regNo variable static

E.

Make the regNo variable public