Quizzes
Site Language: English
Українська
English
Русский
Programming Tests
Login
Sign Up
Programming Tests
Theory
Snippets
Papers
Landing
Android
Prices
FAQ
Cosmo Story
Terms and Conditions
Privacy Policy
Cookies Policy
Send Feedback
nan
:
Content language: English
Русский
What will be the result of the following code execution? public class Main { public static void main(String[] args) { double d = Math.sqrt(-1); System.out.println(Double.NaN == d); d = d / 0; System.out.println(Double.isNaN(d)); } }
nan
What is the result of the following code execution? System.out.println(Math.sqrt(-2.0)); System.out.println(1.0/0.0);
nan
Variables of which types can have value NaN?
nan
← Prev
1
Next →
Sign Up Now
or
Subscribe for future quizzes