Mastering Java 2025 – 400 Free Practice Questions to Pass the 'Thinking in Java' Exam

Image Description

Question: 1 / 510

What access level does a class member have if no access specifier is provided?

Private

Protected

Public

Package access

Without an access specifier, a class member would have package access. This means that the member can be accessed by classes within the same package, but not by classes outside of that package. Options A, B, and C refer to specific access specifiers in Java and are therefore incorrect. Option C, public, would give all classes access to the member, while options A and B would limit the access to the class within which the member is declared or inherited classes. Package access is the default access level in Java if no access specifier is provided.

Get further explanation with Examzify DeepDiveBeta
Next Question

Report this question

Subscribe

Get the latest from Examzify

You can unsubscribe at any time. Read our privacy policy