Ask 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

? any subclass of this class

+5
Answers (1)
  1. 28 June, 16:31
    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 & 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