1z1-808 Exam Question 21
Given the code fragment:

Test.java:

Which is the result?

Test.java:

Which is the result?
1z1-808 Exam Question 22
Given the code fragment:

What is the result?

What is the result?
1z1-808 Exam Question 23
Which one of the following code examples uses valid Java syntax?


1z1-808 Exam Question 24
Given:

What is the result?
C B A

What is the result?
C B A
1z1-808 Exam Question 25
You are asked to develop a program for a shopping application, and you are given the following information:
The application must contain the classes Toy, EduToy, and consToy. The Toy class is the
superclass of the other two classes.
The int caicuiatePrice (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?

The application must contain the classes Toy, EduToy, and consToy. The Toy class is the
superclass of the other two classes.
The int caicuiatePrice (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?

