Which two code blocks correctly initialize a Locale variable?

Which two code blocks correctly initialize a Locale variable?

Which two code blocks correctly initialize a Locale variable?

A.
Locale loc1 = “UK”;

B.
Locale loc2 = Locale.get Instance ( “ru” );

C.
Locale loc3 = Locale.getLocaleFactory(“RU”);

D.
Locale loc4 = Locale.UK;

E.
Locale loc5 = new Locale(“ru”, “RU”);

Explanation:
The Java Tutorials,Creating a Locale



Leave a Reply 0

Your email address will not be published. Required fields are marked *