Useful Java Exceptions | Sololearn: Learn to code for FREE!
Новый курс! Каждый программист должен знать генеративный ИИ!
Попробуйте бесплатный урок
+ 1

Useful Java Exceptions

Well, I learnt how to make my own exceptions with Java. But could you suggest me some useful and wide spread exceptions? P's:in my code there is an Exception, when you enter not an integer number, and MyException, when you enter number 2 (me and my code don't like this number)

17th Sep 2017, 9:24 PM
Топчий Анастасия Александровна
Топчий Анастасия Александровна - avatar
1 ответ
+ 5
The most common Exceptions are probably: NullReferenceException, ArrayIndexOutOfBoundsException, IOException, InputMisMatchException, ArithmeticException, ClassCastException, Exception
18th Sep 2017, 2:14 AM
Rrestoring faith
Rrestoring faith - avatar