Ask Question
12 February, 08:35

A top level class without any modifier is accessible to

? any class

? any class within the same package

? any class within the same file

? any subclass of this class

+5
Answers (1)
  1. 12 February, 09:50
    0
    Answer: A top level class without any modifier is accessible to any class within the same package.

    Explanation: A top level class is class whose declaration occur in the body of their own class therefore it is not a nested class. It cannot be declared in any other class. Private modifier is not allowed in the top level class because there would be no access in the class. Therefore top level class which does not have any modifier can be accessed by any class within the same package.
Know the Answer?
Not Sure About the Answer?
Get an answer to your question ✅ “A top level class without any modifier is accessible to ? any class ? any class within the same package ? any class within the same file ? ...” 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