Given the code fragment:dataFormat df;Which statement defines a new DataFormat object that displays the default date format for the UK Locale?
A. df = DateFormat.getDateInstance (DateFormat.DEFAULT, Locale(UK));
B. df = DateFormat.getDateInstance (DateFormat.DEFAULT, UK);
C. df = DateFormat.getDateInstance (DateFormat.DEFAULT, Locale.UK);
D. df = new DateFormat.getDataInstance (DataFormat.DEFAULT, Locale.UK); E. df = new DateFormat.getDateInstance (DateFormat.DEFAULT, Locale(UK));
Given the code fragment:dataFormat df;Which statement defines a new DataFormat object that displays the default date for
-
- Site Admin
- Posts: 899566
- Joined: Mon Aug 02, 2021 8:13 am