Question OOP-ENC-0077
HardWhich is the main purpose of package-private (default) access in Java?
- A.
Making members public
- B.
Speeding up calls
- 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
Which is the main purpose of package-private (default) access in Java?
Making members public
Speeding up calls
Sign up free to see the answer and a step-by-step explanation.
Allowing all subclasses access
Hiding implementation classes and members from code outside the package