Back to Browse

Java Enum - Full Simple Tutorial

4.1K views
Premiered Jan 14, 2022
7:10

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: https://www.patreon.com/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

Download

1 formats

Video Formats

360pmp411.1 MB

Right-click 'Download' and select 'Save Link As' if the file opens in a new tab.

Java Enum - Full Simple Tutorial | NatokHD