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

Free Oracle 1z0-808 Practice Exam with Questions & Answers

Questions 1

Given:

1z0-808 Question 1

What is the result?

Options:
A.

Compilation fails.

B.

3 5

C.

0 0

D.

9 25

Oracle 1z0-808 Premium Access
Questions 2

Given:

1z0-808 Question 2

And given the code fragment:

Book book1 = new EBook();

book1.readBook();

Which option enables the code to compile?

1z0-808 Question 2

Options:
A.

Option A

B.

Option B

C.

Option C

D.

Option D

Questions 3

Given:

1z0-808 Question 3

What is the result?

Options:
A.

97 9899 100 null null null

B.

97 9899 100 101 102 103

C.

Compilation fails.

D.

A NullPointerException is thrown at runtime.

E.

An ArraylndexOutOfBoundsException is thrown at runtime.

Questions 4

Which two class definitions fail to compile? (Choose two.)

1z0-808 Question 4

1z0-808 Question 4

Options:
A.

Option A

B.

Option B

C.

Option C

D.

Option D

E.

Option E

Questions 5

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

1z0-808 Question 5

and the code fragment:

1z0-808 Question 5

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

Options:
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;

Questions 6

Given the code fragment:

1z0-808 Question 6

What is the result?

Options:
A.

An exception is thrown at runtime.

B.

07-31-2014

C.

2014-07-31

D.

2014-09-30

Questions 7

Given:

1z0-808 Question 7

And given the code fragment:

1z0-808 Question 7

What is the result?

Options:
A.

Compilation fails at line n2.

B.

Read Book

C.

Read E-Book

D.

Compilation fails at line n1.

E.

Compilation fails at line n3.

Questions 8

Given the code fragment:

1z0-808 Question 8

Which modification enables the code fragment to print TrueDone?

Options:
A.

Replace line 5 With String opt = "true";Replace line 7 with case "true":

B.

Replace line 5 with boolean opt = l;Replace line 7 with case 1:

C.

At line 9, remove the break statement.

D.

Remove the default section.

Questions 9

Given:

1z0-808 Question 9

What is the result?

Options:
A.

200.0 : 100.0

B.

400.0 : 200.0

C.

400.0 : 100.0

D.

Compilation fails.

Questions 10

Given the code fragment:

1z0-808 Question 10

Which modification enables the code to print 54321?

Options:
A.

Replace line 6 with System.out.print (--x);

B.

At line 7, insert x --;

C.

Replace line 5 with while (is Available(--x)) {

D.

Replace line 12 with return (x > 0) ? false : true;

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