Ask Question
18 October, 01:02

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

+3
Answers (1)
  1. 18 October, 01:51
    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?
Find 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 and Technology if you're in doubt about the correctness of the answers or there's no answer, then try to use the smart search and find answers to the similar questions.
Search for Other Answers