Weekend Sale 65% Discount Offer - Ends in 0d 00h 00m 00s - Coupon code: sale65best

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

Questions 61

You are asked to develop a program for a shopping application, and you are given this information:

  • The application must contain the classes Toy, EduToy, and ConsToy. The Toy class is the superclass of the other two classes.
  • The int calculatePrice (Toy t) method calculates the price of a toy.
  • The void printToy (Toy t) method prints the details of a toy.

Which definition of the Toy class adds a valid layer of abstraction to the class hierarchy?

1z0-808 Question 61

Options:
A.

Option A

B.

Option B

C.

Option C

D.

Option D

Oracle 1z0-808 Premium Access
Questions 62

Given:

1z0-808 Question 62

What is the result? A. 0:0

100:0

B.null:0

100:0

C.0:0

100:200

D.null:null 100:null

Options:
Questions 63

Given:

1z0-808 Question 63

And given the commands:

1z0-808 Question 63

What is the result?

Options:
A.

Success

B.

Failure

C.

Compilation fails.

D.

An exception is thrown at runtime

Questions 64

Given the code fragment:

1z0-808 Question 64

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

1z0-808 Question 64

Options:
A.

Option A

B.

Option B

C.

Option C

D.

Option D

Questions 65

Given the code fragment:

1z0-808 Question 65

What is the result?

Options:
A.

2012-02-10

B.

2012-01-30

C.

2012-02-10 00:00

D.

A DateTimeException is thrown at runtime.

Questions 66

Given the code fragment:

1z0-808 Question 66

Which two modifications, made independently, enable the code to compile? (Choose two.)

Options:
A.

Make the method at line n1 public.

B.

Make the method at line n2 public.

C.

Make the method at line n3 public.

D.

Make the method at line n3 protected.

E.

Make the method at line n4 public.

Questions 67

Given:

1z0-808 Question 67

What is the result?

Options:
A.

10:20

B.

0:20

C.

Compilation fails at line n1

D.

Compilation fails at line n2

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