Given the code fragment:
Which two modifications, when made independently, enable the code to print Joe:true: 100.0? (Choose two.)
Correct Answer:AC
What is the name of the Java concept that uses access modifiers to protect variables and hide them within a class?
Correct Answer:A
Using the private modifier is the main way that an object encapsulates itself and hide data from the outside world.
Given the code fragment:
What is the result?
Correct Answer:A
Given the code fragment:
Assume that the system date is June 20, 2014. What is the result?
Correct Answer:A
Which three statements describe the object-oriented features of the Java language? (Choose three.)
Correct Answer:BCF
Given the code fragment:
What is the result?
Correct Answer:C