Advertisements
Advertisements
Question
Math.sqrt(−225) can't be defined.
Options
True
False
MCQ
True or False
Solution
This statement is True.
Explanation:
The Math.sqrt() function in Java returns the square root of an integer. The square root of negative numbers cannot be calculated inside the set of real numbers. Instead, it returns NaN (Not a Number), indicating that the square root of a negative number is fictitious. As a result, it is true to state that the square root of −225 cannot be defined in the natural number system.
shaalaa.com
Is there an error in this question or solution?