Solved

Assuming Price Contains the Value 20

Question 111

Multiple Choice

Assuming price contains the value 20.0, 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