The following explanation is offered for option 2...
In this question, the import statements are not specified. If appropriate imports are present (i.e. import static java.util.Locale.*; ), this will work fine.
Since appropriate import statements are assumed, wouldn't that also make option 2 correct? I believe this may be confusing or misleading.
Yes, that is why the explanation also says the following after the statement that you've quoted:
In the exam, you may see a couple of question that have such ambiguous options. In our opinion, it is best not to assume anything special or out of ordinary. Therefore, this option should not be selected.
The exam does mention that appropriate imports are to be assumed. But assuming static imports? We don't know. Use your discretion.
If you like our products and services, please help us by posting your review here.
Oh gosh, this is so obvious. I'm sorry, but I wouldn't call it "changing the Locale" - like you wrote it's immutable, so as per my understanding you cannot really change it. You can replace the reference, but then you're not changing any locale object..
Hmm...never heard the phrase "replacing a reference" used in a technical discussions. But anyway I think in the context of this question, it is quite clear what the explanation is trying to convey.
If you like our products and services, please help us by posting your review here.