Home > Java Programming > Language Fundamentals > Questions and Answers
Q: |
What is the result of trying to compile and run the following code. public final static void main(String[] args){ double d = 10.0 / -0; if(d == Double.POSITIVE_INFINITY) System.out.println("Positive infinity"); else System.out.println("Negative infinity"); } | ||||||||||
|
Comment on this Question | |
Name: | |
|