Java Developer Question: Download Java Developer PDF

If the a class is declared without any access modifiers, where may the class be accessed in Java Programming?

Tweet Share WhatsApp

Answer:

A class that is declared without any access modifiers is said to have package or friendly access. This means that the class can only be accessed by other classes and interfaces that are defined within the same package.

Download Java Developer PDF Read All 63 Java Developer Questions
Previous QuestionNext Question
Which classes of exceptions may be caught by a catch clause in Java Programming?Define Map interface in Java Programming?