0
How can we know which type of Exception it is?
How can we know or guess that which type of Exception it is, now I am completing some tasks about Exceptions but for me it is getting difficult to find them. Is there any easier way of knowing them
2 Antworten
+ 1
You can use instanceof method to check if object is ancestor of specific class. Also you can use exception.getCause() method to ses the cause of exception.
+ 1
Thank you Artem