State some situations where exceptions may arise in java?

1) Accessing an element that does not exist in array.
2) Invalid conversion of number to string and string to number.
(NumberFormatException)
3) Invalid casting of class
(Class cast Exception)
4) Trying to create object for interface or abstract class
(Instantiation Exception)


Posted

in

Tags:

Comments

Leave a Reply