1.

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; sdf = new SimpleDateFormat("mm:hh:ss"); System.out.print(sdf.format(d)); } }

A. 24:08
B. 24:08:18
C. 24
D. Compilation error
E. Runtime error
Answer» C. 24


Discussion

No Comment Found