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 loc5 = new Locale(“ru”, “RU”);

C.
Locale loc4 = Locale.UK;

D.
Locale loc2 = Locale.getInstance(“ru”);

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



Leave a Reply 0

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