Given the code format: SimpleDateFormat sdf; Which code statements will display the full
text month name?
A.
sdf = new SimpleDateFormat (“mm”, Locale.UK); System.out.println(“Result:”,
sdf.format(new date()));
B.
sdf = new SimpleDateFormat (“MM”, Locale.UK); System.out.println(“Result:”,
sdf.format(new date()));
C.
sdf = new SimpleDateFormat (“MMM”, Locale.UK); System.out.println(“Result:”,
sdf.format(new date()));
D.
sdf = new SimpleDateFormat (“MMMM”, Locale.UK); System.out.println(“Result:”,
sdf.format(new date()));
Explanation:
D
sdf = new SimpleDateFormat (“MMMM”, Locale.UK);
System.out.println(“Result:”+ sdf.format(new Date()));