Which of these formatting strings of SimpleDateFormat class is used to print week of the year?
A. w
B. W
C. s
D. S
Answer:A
Which of these formatting strings of SimpleDateFormat class is used to print week of the year?
A. w B. W C. s D. S
Explanation: By using format string “w” we can print week in a year whereas by using ‘W’ we can print week of month.