Back to Browse

What are access modifiers in Java? What is the difference between protected and default in Java?

9 views
Nov 18, 2024
1:05:33

The protected access level is more accessible (that is, less protected) than the default access level. As a starting point, an access level of protected gives all the access of the default access level, but then it adds some access from subclasses.

Download

0 formats

No download links available.

What are access modifiers in Java? What is the difference between protected and default in Java? | NatokHD