Answers for "when you catch an exception, what method can you use to get the type of the exception?"

1

how many ways we can do exception handling in java

We can handle exceptions in either of the two ways :
1) By specifying try catch block where we can catch the exception.
2) Declaring a method with throws clause
Posted by: Guest on December-01-2020

Code answers related to "when you catch an exception, what method can you use to get the type of the exception?"

Code answers related to "Java"

Java Answers by Framework

Browse Popular Code Answers by Language