Frage im Vorstellungsgespräch bei CGI

What is the difference between private and protected in Java ?

Antwort im Vorstellungsgespräch

Anonym

22. Juli 2010

Private variables cannot be accessed from outside the class. Protected variables can be accessed from classes that inherit them.