Ask Question

Which of the following statements is correct?

A) An inner class inside a method is a publicly accessible feature.

B) An interface is also a class.

C) A class can extend at least two superclasses.

D) You can define an inner class inside an enclosing class, but outside its methods.

+1
Answers (1)
  1. 3 July, 19:35
    0
    Answer: A) An inner class inside a method is a publicly accessible feature.

    Explanation:

    An inner class inside a method is a publicly accessible features as, inner class cannot be associated with the private access modifiers, but if we have class as a member of other class, then the inner class can be private. And we can also used to access the private members of the class. Inner class is also known as nested class.

    Different types of inner class are:

    Method local inner class Anonymous inner class Static nested class
Know the Answer?
Not Sure About the Answer?
Find an answer to your question 👍 “Which of the following statements is correct? A) An inner class inside a method is a publicly accessible feature. B) An interface is also a ...” in 📗 Computers & Technology if the answers seem to be not correct or there’s no answer. Try a smart search to find answers to similar questions.
Search for Other Answers