Multiple Choice
Aside from permitting inheritance, the visibility modifier protected is also used to
A) permit access to the protected item by any class defined in the same package
B) permit access to the protected item by any static class
C) permit access to the protected item by any parent class
D) ensure that the class can not throw a NullPointerException
E) define abstract elements of an interface
Correct Answer:

Verified
Correct Answer:
Verified
Q17: A motorcycle inherits properties from both a
Q20: If class AParentClass has a protected instance
Q21: Which of the following is not a
Q31: The reserved word, extends, is used to
Q40: Two children of the same parent class
Q47: Interface classes cannot be extended but classes
Q55: In order to implement the MouseListener interface,
Q57: For the questions below, consider the following
Q58: What instance data and methods might you
Q61: In what manners are Timer objects similar