Learn how to use enum in Java with code examples of all advanced features including constructors, methods, and switch expressions (Java 12). This tutorial explains when to use enums in Java, the benefits that enum provides compared to normal classes, and how to create your own enum.
You can support me on Patreon: / jackhodkinson
00:00 Introduction / example use case for enums
01:40 Definition and syntax
02:21 Switch expressions with enums
03:08 Enum::valueOf(String)
03:20 Enums implement Comparable
04:33 Adding methods to enums
05:35 Enum constructors
On this page of the site you can watch the video online Java Enum - Full Simple Tutorial with a duration of hours minute second in good quality, which was uploaded by the user Jack Hodkinson 01 January 1970, share the link with friends and acquaintances, this video has already been watched 3,561 times on youtube and it was liked by 145 viewers. Enjoy your viewing!