What is the difference between Error and Exception?

1

Why do we have Exceptions ( IOException , for example) and Errors ( OutOfMemoryError , for example)?

I know that both inherit from the Throwable class, but What is the difference between them?

    
asked by anonymous 18.03.2017 / 20:23

1 answer

1

Based on in this gringo OS answer :

Error s are very large issues that should not be handled or thrown.

They are problems that when they happen, do not have much to do.

Already Exception s can be handled and thrown. They may represent large problems, but nothing compared to problems of type Error .

    
18.03.2017 / 20:31