Atos-Syntel Interview Question

difference between public ,protected and private in Java