Multiple Choice
What does the following code display?
Double x = 12.3798146;
System.out.printf("%.2f\n", x) ;
A) 123798146
B) 1238
C) %12.38
D) 12.38
Correct Answer:

Verified
Correct Answer:
Verified
Related Questions
Q1: The System.out.printf method formats a string and
Q18: Which of the following is the correct
Q19: What would be the value of discountRate
Q21: In an if/else statement, if the boolean
Q22: What will be printed when the following
Q24: What would be the value of x
Q25: To do a case insensitive compare which
Q26: What will be the value of pay
Q27: What would be the value of bonus
Q28: What is the value of ans after