πŸ“Š JAVA
Q. What will be the output of the following Java program?
class Output
{
public static void main(String args[])
{
Double i = new Double(257.578123456789);
float x = i.floatValue();
System.out.print(x);
}
}
  • (A) 0
  • (B) 257.0
  • (C) 257.57812
  • (D) 257.578123456789
πŸ’¬ Discuss
βœ… Correct Answer: (C) 257.57812

You must be Logged in to update hint/solution

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
83
Total Visits
πŸ“½οΈ
11 mo ago
Published
πŸŽ–οΈ
Vikash Gupta
Publisher
πŸ“ˆ
98%
Success Rate