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
Q3: Which of the following is not a
Q14: For the questions below, use the following
Q15: The instruction super( ); does which of
Q18: If a programmer writes a class wanting
Q20: For the questions below, consider the following
Q21: Abstract methods are used when defining
A) interface
Q21: As described in the Software Failure, the
Q22: If you instantiate an Abstract class, the
Q24: Java does not support multiple inheritance but
Q31: All classes in Java are directly or
Unlock this Answer For Free Now!
View this answer and more for free by performing one of the following actions
Scan the QR code to install the App and get 2 free unlocks
Unlock quizzes for free by uploading documents