title: If Getter/Setter are replaced at compile time in java; how can their purpose be fulfilled?
body: <p>I'm new to java.
  I have been reading about Getter/Setter (<a href="https://stackoverflow.com/questions/1568091/why-use-getters-and-setters">Why to use getter/setter</a> and <a href="https://stackoverflow.com/questions/565095/are-getters-and-setters-poor-design-contradictory-advice-seen?lq=1">getter/setter poor design</a>).
  While I read on Oracle <a href="http://docs.oracle.com/cd/E15289_01/doc.40/e15058/underst_jit.htm" rel="nofollow noreferrer">Understanding JIT</a>.
  I've two questions as follows :</p>
  
  <p>My question is that, if JIT replaces some getters/setters with actual value while compiling a code, 
  how is the purpose of getter/setter being fulfilled?</p>
  
  <p>How will we achieve encapsulation ?  </p>