Nouvelle formation ! Tous les codeurs devraient apprendre l'IA générative !
Essayez une leçon gratuite0
What do the expression 1.0 / 0.0 will return? will it throw Exception? any compile time error?
2 Réponses
0
You will get Infinity. If you want to get a DivideByZeroException, do integer math like "10/0".
0
it will return Double.infinity