1.

What Are The Different Ways To Handle Exceptions?

Answer»

There are two ways to handle exceptions:

  • By wrapping the desired code in a TRY BLOCK FOLLOWED by a catch block to catch the exceptions.
  • LIST the desired exceptions in the throws clause of the method and LET the caller of the method handle those exceptions.

There are two ways to handle exceptions:



Discussion

No Comment Found