What will be the result of execution of following statements?

double x = 2./0;
double y = -1/0.;
System.out.print(x + y);

Follow CodeGalaxy

Mobile Beta

Get it on Google Play
Send Feedback
Keep exploring
Java quizzes
Cosmo
Sign Up Now
or Subscribe for future quizzes