In this tutorial you will learn:
1) What is exception in JAVA?
2) What is throw block?
3) What is try and catch block?
What is exception in JAVA?
Exception is some unusual event that may happen in the program which also requires special attention of the programmer. Dealing with the exceptions require a lot of overhead processing. Not every error has to be indicated by an exception. Exception separates the code that deal with the exception from the code which is executed during normal running of the program. Exception lets us handle things more