public static MonthDay of (int month, int dayOfMonth)

Obtains an instance of MonthDay.

The day-of-month must be valid for the month within a leap year. Hence, for month 2 (February), day 29 is valid.

For example, passing in month 4 (April) and day 31 will throw an exception, as there can never be April 31st in any year. By contrast, passing in February 29th is permitted, as that month-day can sometimes be valid.

Parameters:
month    the month-of-year to represent, from 1 (January) to 12 (December)
dayOfMonth    the day-of-month to represent, from 1 to 31

Returns:  the month-day, not null

Exceptions:
DateTimeException    if the value of any field is out of range, or if the day-of-month is invalid for the month