Ok, here's k&b chapter 6 self test question #8:
Which are true? (Choose all that apply.)
A. The DateFormat.getDate() is used to convert a
String to a Date instance.
B. Both DateFormat and NumberFormat objects can be constructed to be Locale specific.
C. Both Currency and NumberFormat objects must be constructed using static methods.
D. If a NumberFormat instance's Locale is to be different than the current Locale, it must be specified at creation time.
E. A single instance of NumberFormat can be used to create Number objects from Strings and to create formatted numbers from numbers.
On p. 514, answers B,C,D and E are listed as correct. My question regards
answer C, which I think is vague and misleading, given that the existence of a Currency object was not discussed, to my knowledge, in K&B and thus we
do not expect it to appear on the exam.
For my own peace of mind, I would like to verify that I got this question wrong because the test question tested a concept that was not presented in
the material. But beyond that, if Currency objects are going to be on the
exam, I want to know that too. Remember, we learned only about the NumberFormat.getCurrencyInstance() static method, which, strictly speaking,
returns a NumberFormat object, not a Currency object.