I would like to know, what\'s better or/and faster in general programming? Avoid the exception or wait for the exception?
Avoid the exception would be:
ALWAYS ALWAYS ALWAYS avoid an exception if you can.
Exceptions should be exceptional.
If you can predict it, protect against it happening.
People who use empty catch blocks like that should be banned from using a computer...
It's also faster to not go into catch blocks.