1
Why we have Exceptions (IOException
, for example) and Errors (OutOfMemoryError
, for example)?
I know you both inherit from the class Throwable
, but what’s the difference between them?
1
Why we have Exceptions (IOException
, for example) and Errors (OutOfMemoryError
, for example)?
I know you both inherit from the class Throwable
, but what’s the difference between them?
2
Based in that SO gringo response:
Error
are very big problems that should not be dealt with or launched.
They are problems that when they happen, there is not much to do.
Already Exception
s can be handled and launched. They can pose major problems, but nothing compared to such problems Error
.
Browser other questions tagged java exception
You are not signed in. Login or sign up in order to post.
http://stackoverflow.com/a/912352/5524514
– user28595
Answer from Vinny Godoy =: http://www.guj.com.br/t/qual-verdadeira-diferenca-de-error-e-exception/74549/8
– user28595
@diegofm thanks. I will reply here based on that reply
– igventurelli