Pregunta de entrevista de HighRadius

What is encapsulation? Implement it using java.