Multiple Choice
Which of the following will format 12.78 to display as 12.8%?
A) System.out.printf("%2.1d%", 12.78) ;
B) System.out.printf("%.2f%%", 12.78) ;
C) System.out.printf("%1.2d%", 12.78) ;
D) System.out.printf("%.1f%%", 12.78) ;
Correct Answer:

Verified
Correct Answer:
Verified
Related Questions
Q11: The _ statement is used to create
Q12: What would be the value of bonus
Q13: When testing for character values, the switch
Q14: What does the following code display? <br>int
Q15: Unicode is an international encoding system that
Q17: The String.format method works exactly like the
Q18: A local variable's scope always ends at
Q19: All it takes for an OR expression
Q20: What will be the value of pay
Q21: If you prematurely terminate an if statement