What is the function of the of() methods and the ofYearDay() method of the LocalDate class?

What is the function of the of() methods and the ofYearDay() method of the LocalDate class?



Answer: The of() methods construct a LocalDate object from a provided year, month, and day. The ofYearDay() method makes the object from a year followed by the day of the year.


Learn More :

Data Structures

Learn More Multiple Choice Question :