Solved

Which of the Following Will Format 12

Question 16

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:

verifed

Verified

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

Related Questions