ExamVeda
Login
Home
Regular Expressions in Java
?

What will be the output of the following Java program?
import java.text.*;
import java.util.*;
class Date_formatting
{	 
    public static void main(String args[])
    {
  Date date = new Date();
  SimpleDateFormat sdf;
        sdf = new SimpleDateFormat("z");
        System.out.print(sdf.format(date));
    }	
}

Note : The program is executed at 3 hour 55 minutes and 4 sec on Monday, 15 July(24 hours time).

Answer & Solution
Correct Answer: Option D
Let's discuss the solution. Join the discussion
Examveda
Question posted by Examveda
Community

Join the Discussion

No comments yet Be the first to discuss this question.