MultipleChoice
Given the code fragment:
Which three lines fail to compile?
OptionsMultipleChoice
Given the following code for a Planet object:
What is the output?
OptionsMultipleChoice
You are asked to develop a program for a shopping application, and you are given the following information:
Which definition of the Toy class adds a valid layer of abstraction to the class hierarchy?
OptionsMultipleChoice
Given the code fragment:
and the requirements of the application:
It must display the menu.
It must print the option selected.
It must continue its execution till it reads '0'.
Which code fragment can be used to meet the requirements?
OptionsMultipleChoice
Which two initialization statements are valid? (Choose two.)
OptionsMultipleChoice
Examine the given definitions:
and the code fragment:
Which statement is true about the implementation of Object-Oriented Programming concepts in the given code?
OptionsMultipleChoice
Which two features can be implemented in a Java application by encapsulating the entity classes used? (Choose two.)
OptionsMultipleChoice
Given:
And:
What is the result?
OptionsMultipleChoice
Which two array initialization statements are valid? (Choose two.)
OptionsMultipleChoice
Given the following array:
Which two code fragments, independently, print each element in this array?
Options