1.

What is the output of this program? Note : The program is executed at 3 hour 55 minutes and 4 sec (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("mm:hh:ss"); System.out.print(sdf.format(date)); } }

A. 3:55:4
B. 3.55.4
C. 55:03:04
D. 03:55:04
Answer» D. 03:55:04


Discussion

No Comment Found