பேச்சு:நிரலாக்கம் அறிமுகம்/விதிவிலக்கை கையாளுதல்
தலைப்பைச் சேர்Appearance
குறிப்புகள்:
- http://www.cs.virginia.edu/~ad7g/cs655/JavaExceptions.html
- http://www.urz.uni-heidelberg.de/Unterstuetzung/Hinweise/Einzel/Java/EckelJavaTutor/TIJ311.htm
- http://stackoverflow.com/questions/4670987/why-is-it-better-to-throw-an-exception-rather-than-return-an-error-code
Checked vs Unchecked Exceptions
[தொகு]In Java only:
- Checked Exceptions are the exceptions that must be handled.
- Unchecked Exceptions (Runtime Exceptions or Erros) can be checked optionally, these include arithmetic exceptions, null objects, and error in using arrays with out of range indexes [1]. Unchecked exceptions are optional, because there can be too many can clutter the code. It is upto the programmer to intelligently use them.