What is the result of the following code execution?

System.out.println(Math.sqrt(-2.0));
System.out.println(1.0/0.0);

Explanation could use some explanation lol

2023 Feb 17, 11:04:38 AM

Follow CodeGalaxy

Mobile Beta

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