thinkinterview » interview questions » Java
« Previous

Java Interview Questions

next »
question

What is GregorianCalendar class?

Answer Description: GregorianCalendar class is a subclass of Calender class and provides the standard calendar used by most of the world. It provides support for traditional Western calendars.GregorianCalendar implements proleptic Gregorian and Julian Calendars. That is, dates are computed by extrapolating the current rules indefinitely far backward and forward in time. As a result, GregorianCalendar may be used for all years to generate meaningful and consistent results. However, dates obtained using GregorianCalendar are historically accurate only from March 1, 4 AD onward, when modern Julian calendar rules were adopted. Before this date, leap year rules were applied irregularly, and before 45 BC the Julian calendar did not even exist.

Next Queston » What is the ResourceBundle class? What is the main use of this cl...
What is the ResourceBundle class? Posted By: View Count: