New Year Special 60% Discount Offer - Ends in 0d 00h 00m 00s - Coupon code: bestdeal

Free Oracle 1z0-808 Practice Exam with Questions & Answers | Set: 4

Questions 31

Given the code fragment:

1z0-808 Question 31

What is the result?

Options:
A.

1 2 3 0 01 2 3 0 0

B.

An Exception is thrown at run time.

C.

1 2 3 0 01 2 3

D.

1 2 31 2 3

Oracle 1z0-808 Premium Access
Questions 32

Given the code fragment:

1z0-808 Question 32

What is the result?

Options:
A.

An exception is thrown at runtime.

B.

Compilation fails.

C.

13480.0

D.

13480.02

Questions 33

Which statement is true about the main() method?

Options:
A.

It is invoked by JRE

B.

It is a final method

C.

It returns true if it is executed successfully at run time

D.

It must be defined within a public class

Questions 34

Given the code fragment:

1z0-808 Question 34

What is the result?

Options:
A.

2012-02-10

B.

2012-02-11

C.

Compilation fails

D.

A DateTimeException is thrown at runtime.

Questions 35

Given:

1z0-808 Question 35

And given the commands:

1z0-808 Question 35

What is the result?

Options:
A.

Java SE

B.

Java EE

C.

Compilation fails at line n1.

D.

A NullPointerException is thrown at runtime.

Questions 36

Given:

1z0-808 Question 36

Given the code fragment:

1z0-808 Question 36

Which two sets of actions, independently, enable the code fragment to print Fit?

Options:
A.

At line n1 insert: import clothing.Shirt;At line n2 insert: String color = Shirt.getColor();

B.

At line n1 insert: import clothing;At line n2 insert: String color = Shirt.getColor();

C.

At line n1 insert: import static clothing.Shirt.getColor;At line n2 insert: String color = getColor();

D.

At line n1 no changes required.At line n2 insert: String color = Shirt.getColor();

E.

At line n1 insert: import Shirt;At line n2 insert: String color = Shirt.getColor();

Questions 37

Given the code fragment:

1z0-808 Question 37

What is the result?

1z0-808 Question 37

Options:
A.

Option A

B.

Option B

C.

Option C

D.

Option D

E.

Option E

Questions 38

Given the code fragment:

1z0-808 Question 38

Which option can replace xxx to enable the code to print 135?

1z0-808 Question 38

Options:
A.

Option A

B.

Option B

C.

Option C

D.

Option D

Questions 39

Given:

1z0-808 Question 39

and the code fragment:

S2 sobj = new S2(); sobj.display(10, 100);

What is the result?

Options:
A.

Child 10

Child 100

Parent 100

B.

Parent 10

Child 10

Parent 1000

C.

Child 10

Parent 100

Parent 100

D.

A compile time error occurs.

Questions 40

Given:

1z0-808 Question 40

What is the result?

Options:
A.

C B A

B.

C

C.

A B C

D.

Compilation fails at line n1 and line n2

Exam Code: 1z0-808
Certification Provider: Oracle
Exam Name: Java SE 8 Programmer I
Last Update: Mar 28, 2025
Questions: 224