Access level: default vs. protected

The following table shows the difference between default and protect access level. Notice the difference between reference and inherited.

java protected and default

Category >> Classes & Interfaces >> Versus  
If you want someone to read your code, please put the code inside <pre><code> and </code></pre> tags. For example:
<pre><code> 
String foo = "bar";
</code></pre>

  1. aaa on 2014-3-27

    Test

  2. Raju on 2014-3-27

    What’s this???

  3. Wangdu on 2014-7-29

    Can you explain what u want to say?

  4. shutear on 2014-11-29

    A wonderful explanation of the accessibility of protected and default in java.

Leave a comment

*