1z0-808 문제 136

Given the code fragment:

Which three code fragments are valid at line n1? (Choose three.)

1z0-808 문제 137

Given:

The class is poorly encapsulated. You need to change the circle class to compute and return the area instead.
Which two modifications are necessary to ensure that the class is being properly encapsulated?

1z0-808 문제 138

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 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 문제 139

Given the code fragment:

What is the result if the integer aVar is 9?

1z0-808 문제 140

Given:

And given the commands:
javac Test.java
java Test
What is the result?