Pregunta de entrevista de Mercury Insurance Company

What is encapsulation in Java?