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 # 17

Given the code fragment:

What is the result?

A.

Sum is 600

B.

Compilation fails at line n1.

C.

Compilation fails at line n2.

D.

A ClassCastException is thrown at line n1.

E.

A ClassCastException is thrown at line n2.

Full Access
Question # 18

Given the code fragment:

What is the result?

A.

3

B.

0

C.

Compilation fails.

D.

-1

Full Access
Question # 19

Given:

What is the result? A. 0:0

100:0

B.null:0

100:0

C.0:0

100:200

D.null:null 100:null

Full Access
Question # 20

Given the code fragment:

What is the result?

A.

Element 0Element 1

B.

Null element 0Null element 1

C.

NullNull

D.

A NullPointerException is thrown at runtime.

Full Access
Question # 21

Given the definitions of the Bird class and the Peacock class:

and the code fragment:

Which code snippet can be inserted to print Fly.Dance. ?

A.

Bird p = new Peacock();

B.

Bird b = new Bird();Peacock p = (Peacock) b;

C.

Peacock b = new Peacock ();Bird p = (Bird) b;

D.

Bird b = new Peacock ();Peacock p = (Peacock) b;

Full Access
Question # 22

Given the code fragment:

What is the result?

A.

1:2:3:4:5:

B.

1:2:3:

C.

Compilation fails.

D.

An ArrayOutOfBoundsException is thrown at runtime.

Full Access
Question # 23

Given:

What is the result?

A.

10 : 30 : 6

B.

10 : 22 : 22

C.

10 : 22 : 20

D.

10 : 22 : 6

Full Access
Question # 24

Given:

And given the code fragment:

What is the result?

A.

4W 100 Auto4W 150 Manual

B.

null 0 Auto4W 150 Manual

C.

Compilation fails only at line n1

D.

Compilation fails only at line n2

E.

Compilation fails at both line n1 and line n2

Full Access
Go to page: