

MCQOPTIONS
Saved Bookmarks
1. |
What is the output of this program? Note: The program is executed at 3 hour 55 minutes and 4 sec on Monday, 15 July(24 hours time). import java.text.*; import java.util.*; class Date_formatting { public static void main(String args[]) { Date date = new Date(); SimpleDateFormat sdf; sdf = new SimpleDateFormat("E MMM dd yyyy"); System.out.print(sdf.format(date)); } } |
A. | Mon Jul 15 2013 |
B. | Jul 15 2013 |
C. | 55:03:04 Mon Jul 15 2013 |
D. | 03:55:04 Jul 15 2013 |
Answer» B. Jul 15 2013 | |