Java Enum

preview_player
Показать описание
A Java enum is a mechanism for creating a collection of constants in Java. A Java enum is short for an "enumeration of constants". Typically you will create an enum containing related constants, e.g. HIGH, MEDIUM and LOW. This video explains how Java enums works.

If you prefer a textual Java enum tutorial, I have one here:

Рекомендации по теме
Комментарии
Автор

I currently student of computer engineering and this video is the only place a learn about enum's. Thanks a lot.

PharaohGames
Автор

Very rare video. Usually everybody touches enums on tops

Ilohimushka
Автор

so just cause enum values are static by default we need to fetch them using class name?

arjunwalia
Автор

The Tutorial texts and videos are great. Thanks a lot. Is the generics can be used with enum? if so please give example. Thanks.

akshayvenkateshsankaran
Автор

Thanks for the explanation! It's so much more enjoyable learning with your relaxing voice :)

eko
Автор

What is the benefit of using an EnumMap, instead of a HashMap that contains enum as keys?

paladinsorcerer
Автор

Love your tutorial Jakob, I've now subbed to your channel!!

josephwong
Автор

What a sweet voice you have Sir. It's a great pleasure to hearken to it. I'm curious where do you come from?

BtXFWkyZBtXFWkyZ
Автор

Maybe someone has an example of code, where enum's are used. I made a small shopping simulation program for learning purposes, and one of the teachers in our academy said, try to use enums for kg, mg, g (kilograms, grams and so on) when printing all products menu.

AndrulisTravel
Автор

Could you please explain how to map two same values in a single enum?

pranathivarikuntla
Автор

I just find your channel ; you rock :-)

hippiestafarii
Автор

Why can't you upload more java vidoes

syedwaseemahmed
Автор

i need a magnifying glass to see that code

elbozo
Автор

OMG bro, get darcula mode up in that IntelliJ, its 10pm (I'm in the equator, literally in Ecuador so it's late) and my eyes hurt watching this, with screen at minimum bright!

DiegoXMV
Автор

Sir,
upload videos for java nio too.

neelakshsharma