Question: Explain the difference between 'Error' and 'RuntimeException'.Answer: 'Error' is meant to indicate serious problems that should not be caught or handled, while 'RuntimeException' is a subclass of 'Exception' and represents exceptions that can be caught and handled. |
Is it helpful?
Yes
No
Most helpful rated by users: