If an exception occurs in a try block, how is execution transferred to the catch block? This is not a C#/Java/C++ question, I’m just wondering how it works internally.
If an exception occurs in a try block, how is execution transferred to the
Share
How this works internally makes this pretty much a c#/java/C++ question (because it will be implemented differently).
In Java, a try block installs itself into a special table (in the class file). When the JVM throws an exception, it looks at that table to see where the next catch or finally block to go to is.