Useful Java Exceptions | Sololearn: Learn to code for FREE!
Nouvelle formation ! Tous les codeurs devraient apprendre l'IA générative !
Essayez une leçon gratuite
+ 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 Réponse
+ 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