Which code statements will display the full text month name?

Given the code format: SimpleDateFormat sdf; Which code statements will display the full
text month name?

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:



Leave a Reply 1

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


gelete

gelete

D

sdf = new SimpleDateFormat (“MMMM”, Locale.UK);
System.out.println(“Result:”+ sdf.format(new Date()));