Skip to main content
Post Closed as "Duplicate" by Mark Rotteveel java
added 8 characters in body
Source Link
Nicholas K
  • 15.4k
  • 8
  • 35
  • 59

I was trying to learn java and when I went through access specifiers I had a doubt, what. What is the difference between the default one if none is specified and the protected access specifier in java?

I was trying to learn java and when I went through access specifiers I had a doubt, what is the difference between the default one if none is specified and the protected access specifier?

I was trying to learn java and when I went through access specifiers I had a doubt. What is the difference between the default one if none is specified and the protected access specifier in java?

Source Link
Abhilash PS
  • 814
  • 1
  • 12
  • 25

Difference between the default access specifier and protected access specifier in java

I was trying to learn java and when I went through access specifiers I had a doubt, what is the difference between the default one if none is specified and the protected access specifier?