Ask Question
19 June, 02:58

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.

+3
Answers (1)
  1. 19 June, 03:21
    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?
Get 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 there is no answer or all answers are wrong, use a search bar and try to find the answer among similar questions.
Search for Other Answers