Computer Science, asked by Ajit1pandey, 1 year ago

what is try and catch in java explain with example

Answers

Answered by S4MAEL
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