Do Java enums start at 0 or 1?

The enum constants have an initial value which starts from 0, 1, 2, 3, and so on . But, we can initialize the specific value to the enum constants by defining fields and constructors. As specified earlier, Enum can have fields, constructors, and methods.

Sizin İçin Seçtik  15 Temmuz baskılı 1 TL ne kadara satılır?

Leave a Reply

Your email address will not be published. Required fields are marked *