Which of the following statements about an inner class is true?
A) An inner class that is defined inside a method is publicly accessible.
B) An inner class that is defined inside a method is not publicly accessible.
C) An inner class that is defined inside an enclosing class but outside of its methods is not available to all methods of the enclosing class.
D) An inner class is used for a utility class that should be visible elsewhere in the program.
Correct Answer:
Verified
Q18: Which of the following statements about interfaces
Q19: Consider the following code snippet: public interface
Q20: Which of the following is true regarding
Q21: In Java, _ can be used for
Q22: If you have multiple classes in your
Q24: The method below is designed to print
Q25: Assuming that interface Resizable is declared elsewhere,
Q26: Which of the following statements about a
Q27: Which of the following is a good
Q28: Which of the following statements about an
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