what is try and catch in java explain with example
Answers
Answered by
2
The try block contains set of statements where an exception can occur. A try block is always followed by a catch block, which handles the exception that occurs in associated tryblock. A try block must be followed bycatch blocks or finally block or both.
Ajit1pandey:
thanku
Similar questions