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

1z0-808 Exam Dumps - Java SE 8 Programmer I

Go to page:
Question # 33

Given the code fragment:

What is the result?

A.

A NullPointerException is thrown at runtime.

B.

[1, 2, 4]

C.

[1, 2, 4, null]

D.

[1, 3, 4, null]

E.

[1, 3, 4]

F.

Compilation fails.

Full Access
Question # 34

Given the code fragment:

Which three lines fail to compile? (Choose three.)

A.

Line 7

B.

Line 8

C.

Line 9

D.

Line 10

E.

Line 11

F.

Line 12

Full Access
Question # 35

Given these classes:

And given this main method:

Which two options compile when placed at line n1 of the main method? (Choose two.)

A.

director.stockOptions = 1_000;

B.

employee.salary = 50_000;

C.

manager.budget = 1_000_000;

D.

manager.stockOption = 500;

E.

employee.budget = 200_000;

F.

director.salary = 80_000;

Full Access
Question # 36

Given:

And given the commands:

What is the result?

A.

1 null

B.

true false

C.

false false

D.

true true

E.

A ClassCastException is thrown at runtime.

Full Access
Question # 37

Which two initialization statements are valid? (Choose two.)

A.

Boolean available = “TRUE”:

B.

String tmpAuthor = author, author =”Mc Donald”;

C.

Double price = 200D;

D.

Integer pages = 20;

Full Access
Question # 38

Given:

What is the result?

A.

Welcome Visit Count:0Welcome Visit Count: 1

B.

Compilation fails at line n2.

C.

Compilation fails at line n1.

D.

Welcome Visit Count:0Welcome Visit Count: 0

Full Access
Question # 39

Given:

And given the code fragment:

What is the result?

A.

300:300200:300

B.

300:100200:300

C.

300:00:300

D.

100:300300:200

Full Access
Question # 40

Given the following main method:

What is the result?

A.

5 4 3 2 1 0

B.

5 4 3 2 1

C.

4 2 1

D.

5

E.

Nothing is printed

Full Access
Go to page: