Enums in Java help to define constants which are more powerful than we do with Interfaces. The main objective of Enums is to ensure the type safety when using the Constants in Java programs. In this Video tutorial i have explained how enums work and how objects can be created. I have also explained about some the important methods of enum like values() valueOf(String), Ordinal(), name() etc. All the object produced by enum are singleton. And enum provided a great flexibility to add more values to constant and define methods like a normal class.
In questa pagina del sito puoi guardare il video online Java Tutorial # 26 | Enumerations in Java | Enums in Java | Java Beginners Tutorials by Java9s della durata di ore minuti seconda in buona qualità , che l'utente ha caricato java9s 05 giugno 2013, condividi il link con amici e conoscenti, su youtube questo video è già stato visto 39,530 volte e gli è piaciuto 208 spettatori. Buona visione!