Oracle
1Z0-851 · Question #162
1Z0-851 Question #162: Real Exam Question with Answer & Explanation
Sign in or unlock 1Z0-851 to reveal the answer and full explanation for question #162. The question stem and answer options stay visible for context.
Question
Given: NumberFormat nf = NumberFormat.getInstance(); nf.setMaximumFractionDigits(4); nf.setMinimumFractionDigits(2); String a = nf.format(3.1415926); String b = nf.format(2); Which two statements are true about the result if the default locale is Locale.US? (Choose two.)
Options
- AThe value of b is 2.
- BThe value of a is 3.14.
- CThe value of b is 2.00.
- DThe value of a is 3.141.
- EThe value of a is 3.1415.
- FThe value of a is 3.1416.
- GThe value of b is 2.0000.
Unlock 1Z0-851 to see the answer
You've previewed enough free 1Z0-851 questions. Unlock 1Z0-851 for full answers, explanations, the timed quiz mode, progress tracking, and the master PDF. Question stem and options stay visible so you can still see what's on the exam.