Computer Science, asked by Arpitajn0811, 11 months ago

getDate() method present in which class?​

Answers

Answered by steffis
0

The getDate() method present in Date class.

Explanation:

Java affords the Date class which is present in the 'java.util package', this class 'encapsulates' the system date and time.

The getDate() method of the 'Java Date class' returns a value in between 1 and 31 that represents the day of the month of the date object. The java.util.Date class represents system time and date in 'java'. It offers 'constructors' and 'methods' to deal with time and date in 'java'.

Similar questions