Question OOP-ENC-0011
MediumWhat is the default access level of a class member in Java when no modifier is written?
- A.
private
- B.
protected
- C.
Sign up free to see the answer and a step-by-step explanation.
Popular companies
Prepare company by company
Hiring pattern, syllabus, past questions and mocks for each company.
All companiesPractice by subject
Encapsulation question
What is the default access level of a class member in Java when no modifier is written?
private
protected
Sign up free to see the answer and a step-by-step explanation.
public
Package-private (visible within the same package)