Multiple Choice
What does the following code output?
DecimalFormat dfQuestion = new DecimalFormat("#0.##E0") ;
System.out.println(dfQuestion.format(12.7896987) ) ;
A) 12.79E0
B) 12.8E0
C) 1.28E1
D) .13E2
Correct Answer:

Verified
Correct Answer:
Verified
Related Questions
Q3: What do the format specifiers d,f,e,g,s and
Q7: The method printf is used the same
Q9: Efficiency is lost in importing the entire
Q17: If a hyphen is added after the
Q20: The statement: System.out.printf("%6.2f",597.7231); displays:<br>A)597.723<br>B)597.72<br>C)000597.72<br>D)None of the above<br>
Q22: The class NumberFormat allows you to specify
Q23: Write a Java statement to create and
Q25: Valid arguments to the System.out object's println
Q26: What does it mean to prompt the
Q27: The new line character is represented as