New Year Sale Limited Time 70% Discount Offer - Ends in 0d 00h 00m 00s - Coupon code: simple70

Oracle Java SE 11 Developer 1z0-819 Question # 20 Topic 3 Discussion

Oracle Java SE 11 Developer 1z0-819 Question # 20 Topic 3 Discussion

1z0-819 Exam Topic 3 Question 20 Discussion:
Question #: 20
Topic #: 3

Given the code fragment:

1z0-819 Question 20

You want to display the value of currency as $100.00.

Which code inserted on line 1 will accomplish this?


A.

NumberFormat formatter = NumberFormat.getInstance(locale).getCurrency();


B.

NumberFormat formatter = NumberFormat.getCurrency(locale);


C.

NumberFormat formatter = NumberFormat.getInstance(locale);


D.

NumberFormat formatter = NumberFormat.getCurrencyInstance(locale);


Get Premium 1z0-819 Questions

Contribute your Thoughts:


Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.