Optional Java Class Example With Constructor Definition