With reason Output of this :- System.out.println(0/0) ; System.out.println(0.0/0) ; A) NAN, NAN B) INFINITY, INFINITY C) EXCEPTION, EXCEPTION D) EXCEPTION, INFINITY Explain the logic also

EBK JAVA PROGRAMMING
9th Edition
ISBN:9781337671385
Author:FARRELL
Publisher:FARRELL
Chapter12: Exception Handling
Section: Chapter Questions
Problem 1RQ
icon
Related questions
Question

With reason

Output of this :-
System.out.println(0/0) ;
System.out.println(0.0/0) ;
A) NAN, NAN
B) INFINITY, INFINITY
C) EXCEPTION, EXCEPTION
D) EXCEPTION, INFINITY

Explain the logic also

Expert Solution
steps

Step by step

Solved in 4 steps with 1 images

Blurred answer
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
EBK JAVA PROGRAMMING
EBK JAVA PROGRAMMING
Computer Science
ISBN:
9781337671385
Author:
FARRELL
Publisher:
CENGAGE LEARNING - CONSIGNMENT
Programming Logic & Design Comprehensive
Programming Logic & Design Comprehensive
Computer Science
ISBN:
9781337669405
Author:
FARRELL
Publisher:
Cengage