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

A. 08:28:25
B. 08
C. Compilation Error
D. 08:28
E. Runtime Error
Answer» E. Runtime Error


Discussion

No Comment Found