Basic and Advance Programming Question:

Download Job Interview Questions and Answers PDF

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

Programming Interview Question
Programming Interview Question

Answer:

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

Download Programming Interview Questions And Answers PDF

Previous QuestionNext Question
What is Python and what is scope of Python?Does a class inherit the constructors of its superclass in programming?