-
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));
}
}
-
- 24:08
- 24:08:18
- 24
- Compilation error
- Runtime error
Correct Option: B
24:08:18