Home » JAVA Programming » Date & Time » Question
  1. Which of these formatting strings of SimpleDateFormat class is used to print week of the year?
    1. s
    2. S
    3. w
    4. W
    5. None of these
Correct Option: C

By using format string “w” we can print week in a year whereas by using ‘W’ we can print week of a month.



Your comments will be displayed only after manual approval.