首页题库练习题目详情
Java语言程序设计单选题中等

下列代码的输出结果是什么?String str = String.format("%.2f", 123.456);

A123.456
B123.46
C123.45
D123.456000