Multiple Choice
Which of the following is TRUE about protected access?
A) Protected members may be accessed by methods in the same package or in a subclass, even when the subclass is in a different package.
B) Protected members may be accessed by methods in the same package or in a subclass, but only if the subclass is in the same package.
C) Protected members cannot be accessed by methods in any other classes.
D) Protected members are actually named constants.
Correct Answer:

Verified
Correct Answer:
Verified
Q19: Inheritance involves a subclass, which is the
Q29: In a class hierarchy:<br>A) the more general
Q31: Look at the following code: Line 1
Q32: This is a variable whose value is
Q32: A subclass may call an overridden superclass
Q33: Look at the following code. The method
Q35: Look at the following code. What is
Q36: What is wrong with the following code?<br>IntCalculator
Q37: In the following statement, which is the
Q39: If ClassC extends ClassB, which extends ClassA,