Solved

What Will Be Printed When the Following Code Is Executed

Question 63

Multiple Choice

What will be printed when the following code is executed?
Double x = 45678.259;
String output = String.format("%,.1f", x) ;
System.out.println(output) ;


A) 45678.259
B) 45,678.259
C) 45,678.26
D) 45,678.3

Correct Answer:

verifed

Verified

Unlock this answer now
Get Access to more Verified Answers free of charge

Related Questions