public static MonthDay of(Month month,
int dayOfMonth)
This method creates an instance of MonthDay for the provided month enum and dayOfMonth value. The specified dayOfMonth must be a valid day for a month.
public static MonthDay of(int month,
int dayOfMonth)
This method creates an instance of MonthDay for the provided month and dayOfMonth values. The specified month and dayOfMonth values must be valid for a month and the day within that month.