title: Encapsulation vs Data Hiding - Java
body: <blockquote>
    <p><strong>Interviewer:</strong> What is encapsulation and how do you achieve it in Java?</p>
    
    <p><strong>Me:</strong>  Encapsulation is a mechanism to hide information from the client. The information may be data or implementation or algorithm. We
    achieve this using access modifiers. </p>
    
    <p><strong>Interviewer:</strong> This is data hiding. How do we achieve encapsulation in Java?</p>
    
    <p><strong>Me</strong>: uummmm</p>
  </blockquote>
  
  <p><strong>Concrete Question:</strong> Other than 'Access Modifiers', what is the way to implement Encapsulation in Java?</p>