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
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
Chapter12: Exception Handling
Section: Chapter Questions
Problem 1RQ
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
This question has been solved!
Explore an expertly crafted, step-by-step solution for a thorough understanding of key concepts.
Step by step
Solved in 4 steps with 1 images
Recommended textbooks for you
EBK JAVA PROGRAMMING
Computer Science
ISBN:
9781337671385
Author:
FARRELL
Publisher:
CENGAGE LEARNING - CONSIGNMENT
Programming Logic & Design Comprehensive
Computer Science
ISBN:
9781337669405
Author:
FARRELL
Publisher:
Cengage
EBK JAVA PROGRAMMING
Computer Science
ISBN:
9781337671385
Author:
FARRELL
Publisher:
CENGAGE LEARNING - CONSIGNMENT
Programming Logic & Design Comprehensive
Computer Science
ISBN:
9781337669405
Author:
FARRELL
Publisher:
Cengage