title: Java encapsulation
body: <p>We always say that data will be encapsulated if we simply define variables <code>private</code> and define getters setters to access those variables. My question is if we can access the variables (data) though via getters and setters, how come data is hidden or safe?</p>
  
  <p>I googled a lot for an explanation, but I found nothing. Every one just said in their blogs and posts that it is a data hiding technique, but it has not been explained/elaborated.</p>