1.

Which of these formatting strings of SimpleDateFormat class is used to print AM or PM in time?(a) a(b) b(c) c(d) dI got this question in class test.The doubt is from Text Formatting in section Regular Expressions of Java

Answer»

Right ANSWER is (a) a

Easiest explanation: By USING FORMAT STRING “a” we can print AM/PM in TIME.



Discussion

No Comment Found

Related InterviewSolutions