Which of these formatting strings of SimpleDateFormat class is used to print AM or PM in time?
A. a
B. b
C. c
D. d
Answer:A
Which of these formatting strings of SimpleDateFormat class is used to print AM or PM in time?
A. a B. b C. c D. d
Explanation: By using format string “a” we can print AM/PM in time.