Multiple Choice
What is the output of the following statement?System.out.printf("%.2f", 48.9) ;
A) 48.00
B) 48.90
C) 49
D) 49.00
Correct Answer:

Verified
Correct Answer:
Verified
Related Questions
Q3: String variables are reference variables.
Q6: The method printf is used only to
Q9: The value of the expression Integer.parseInt("+782") is
Q36: Java provides automatic garbage collection.
Q39: Which of the following is the member
Q40: Suppose that you have the declaration:int num
Q41: Consider the following statements.double x;<br>String y;y =
Q43: String sentence;<br>String str1, str2, str3, str4;<br>Int length1;sentence
Q46: Which package is automatically imported by the
Q48: Which of the following is an area