Given:
What is the result?
Correct Answer:
C
🗳️
Which statement is true about the switch statement?
Correct Answer:
B
🗳️
Given the code fragment:
What is the result?
Correct Answer:
B
🗳️
Given the code fragment:
What is the result?
Correct Answer:
C
🗳️
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.
Reference:
http://www.tutorialspoint.com/java/java_access_modifiers.htm