1.

What is the output of this program?
import java.util.*;
public class date_Example
{
public static void main(String args[])
{
Date object = new Date();
System.out.print(object);
}
}

A. Any Garbage Value
B. Prints Present Time & Date
C. Runtime Error
D. Prints Present Date
E. None of these
Answer» C. Runtime Error


Discussion

No Comment Found

Related MCQs