what is the work of default access specifier
Answers
Answered by
1
Default. When we don't use any keyword explicitly, Java will set a default access to a given class, method or property. The default access modifier is also called package-private, which means that all members are visible within the same package but aren't accessible from other packages: package com.
Answered by
1
Explanation:
Default Access Specifier
Any member of a class mentioned without any access specifier then it is considered that as Default. The Default will act as public within the same package and acts as private outside the package.
like me
Similar questions
Math,
18 days ago
Math,
1 month ago
Physics,
1 month ago
Computer Science,
9 months ago
Math,
9 months ago