title: Why does sun.misc.Unsafe exist, and how can it be used in the real world?
body: <p>I came across the sun.misc.Unsafe package the other day and was amazed at what it could do.</p>
  
  <p>Of course, the class is undocumented, but I was wondering if there was ever a good reason to use it. What scenarios might arise where you would need to use it? How might it be used in a real-world scenario?</p>
  
  <p>Furthermore, if you <em>do</em> need it, does that not indicate that something is probably wrong with your design?</p>
  
  <p>Why does Java even include this class?</p>