I've read that exceptions in Java are differentiated by being either checked and unchecked. How does a compiler know that an exception is a checked exception?
Also since all exceptions are extending extending the class Exception
- is there any flag that is set to true for the compiler to mark the exception as a checked exception...
What is happening behind the scene?
I am just curious too to know about it..