Solved

Which of the Following Statements Displays

Question 25

Multiple Choice

Which of the following statements displays
Price = 20.00


A) System.out.print("price = ") ;
System.out.printf(price) ;
B) System.out.print("price = ") ;
System.out.printf("%f", price) ;
C) System.out.print("price = ") ;
System.out.printf("%10.2f", price) ;
D) System.out.print("price = ") ;
System.out.printf("%2.10f", price) ;

Correct Answer:

verifed

Verified

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

Related Questions