Solved

Which of the Following Will Format 12 $$", 127801);
D) System

Question 32

Multiple Choice

Which of the following will format 12.7801 to display as $12.78?


A) System.out.printf("$%,.2f", 12.7801) ;
B) System.out.printf("%f", 12.7801) ;
C) System.out.printf("%.2f $$", 12.7801) ;
D) System.out.printf("$d", 12.7801) ;

Correct Answer:

verifed

Verified

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

Related Questions