A few days back we had a lecture on try catch and finally blocks , I'm however wondering how does JVM process the Try catch and finally codes. Cause if there is a exception being generated , then how does catch resolve it. And what happens inside each block during exception handling and exception generation. How does the system know that the result obtained is an exception and not a legit output .What exactly is happening inside the pc when a try catch block is being executed.
would be a great help if someone could tell me these concepts .