Urgent.News

What's breaking now, across thousands of outlets.

More in Tech

How Java Exceptions Work: A Quick Walkthrough

You write try / catch every day. But when a throw runs, what does the JVM actually do ? There is no magic: there is a table lookup, a stack unwinding procedure written down in the JVM specification…

  • Java exceptions are ordinary objects extending Throwable class
  • Thrown programmatically via athrow instruction or JVM abnormal detection
  • Exception contains stack trace of execution stack frames

More from Friday 13 November →