πŸ“Š JAVA
Q. What will be the output of the following Java code?
class isNaN_output
{
public static void main(String args[])
{
Double d = new Double(1 / 0.);
boolean x = d.isNaN();
System.out.print(x);
}
}
  • (A) 0
  • (B) 1
  • (C) true
  • (D) false
πŸ’¬ Discuss
βœ… Correct Answer: (D) false

You must be Logged in to update hint/solution

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
96
Total Visits
πŸ“½οΈ
12 mo ago
Published
πŸŽ–οΈ
Sandhya Thakur
Publisher
πŸ“ˆ
85%
Success Rate