Understanding Exception in Java – Computer Sir Ki Class

Login


Lost your password?

Don't have an account ?
Register (It's FREE) ×
  

Login
[lwa]



Q&A #7643 siteicon  

Question:

What is an exception in JAVA?

Answer:

Exception is a type of runtime error while execution of program which user can possibly handle (catch) and report with a suitable message or take some other planned action.

for e.g. divide by zero, array out of bound, file not found

Exception is handled using try-catch syntax of java.


Share

CSKC| Created: 1-Feb-2020 | Updated: 1-Feb-2020|






Back