Which statement is true about the switch statement?
Correct Answer:
B
Given the code fragment:
What is the result?
Correct Answer:
C
Which two statements are true? (Choose two.)
Correct Answer:
BC
Which statement best describes encapsulation?
Correct Answer:
A
Given:
And given the code fragment: Book book1 = new EBook(); book1.readBook();
Which option enables the code to compile?
Correct Answer:
D