Which statement defines a new Dateformat object that displays the default date format for the UK Locale?

Given the code fragment: DateFormat df; Which statement defines a new Dateformat object
that displays the default date format for the UK Locale?

Given the code fragment: DateFormat df; Which statement defines a new Dateformat object
that displays the default date format for the UK Locale?

A.
df = new DateFormat.getDateInstance (DateFormat.DEFAULT, Locale (UK));

B.
df = new DateFormat.getDateInstance (DateFormat.DEFAULT, Locale.UK);

C.
df = DateFormat.getDateInstance (DateFormat.DEFAULT, Locale (UK));

D.
df = DateFormat.getDateInstance (DateFormat.DEFAULT, Locale.UK);

E.
df = DateFormat.getDateInstance (DateFormat.DEFAULT, UK);



Leave a Reply 1

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