Ask Question

A top level class may have only the following accessmodifier.

? Package

? Private

? Protected

? Public

+4
Answers (1)
  1. 4 July, 16:09
    0
    Answer: Public

    Explanation:

    A top level class can have a public, as top level cannot be private and protected because the modifier private is not allowed. As, top level is a class which is not a nested class. Interface of a access modifier is either public or no modifier. There are two types of access control modifier are top level - public and member level - private, protected.
Know the Answer?
Not Sure About the Answer?
Find an answer to your question 👍 “A top level class may have only the following accessmodifier. ? Package ? Private ? Protected ? Public ...” 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