Can Java enum have numbers?

No, we can have only strings as elements in an enumeration . Using strings in it, generates a compile time error.6 Ağu 2019

Sizin İçin Seçtik  Can enum take string values?

Leave a Reply

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