Given the definitions of the MyString class and the Test class:
What is the result?
Correct Answer:
D
Given this code for a Planet object:
What is the output?
Correct Answer:
C
Given the code fragment:
Which two modifications, when made independently, enable the code to print Joe:true: 100.0? (Choose two.)
Correct Answer:
AC
Given this class:
Which two changes would encapsulate this class and ensure that the area field is always equal to length * height whenever the Rectangle class is used?
Correct Answer:
AE
Given the code fragment:
Which three code fragments are valid at line n1?
Correct Answer:
CDE
