Accenture interview question

What is the difference between Private and Protected in Java

Interview Answer

Anonymous

Dec 12, 2019

private = cannot be accessed by other than the class itself protected = can be accessed by other classes as well