title: Headless exception in java
body: <p>I heard that when we use awt or swing, while creating a FRAME, an unchecked exception may be thrown which is "Headless exception".
  I never got this exception. Can anyone tell when this exception is thrown?</p>