Calendar class in java.util handles the year, month, day, hour, minute, and second operations. There are no constructors used by a Calendar class.
Protected instance variables defined by Calendar class:
fields: It is an array of int which is used to hold components of time.
areFieldsSet: It is a boolean type which is used to inform if time components are set.
isSet: It is a boolean type array which informs if a specific time component is set.
time: It is a long type which is used to hold the current time for object.
isTimeSet: It is a boolean type which informs if current time is set.
int constants defined by Calendar class: