-
What is the output of this program?
import java.text.*;
import java.util.*;
public class DateFormatting_Example
{
public static void main(String args[])
{
Date d = new Date();
SimpleDateFormat sdf = new SimpleDateFormat("E MMM dd yyyy");
System.out.print(sdf.format(d));
}
}
-
- 26 2018
- Nov 26 2018
- Mon Nov 26 2018
- Mon
- Mon 26 2018
Correct Option: A
Mon Nov 26 2018