Java Enum in 4 minutes | Basics | Example | Practical Use-case

preview_player
Показать описание
What is ENUM in Java?

- The Enum in Java is a data type that contains a fixed set of constants.
- According to the Java naming conventions, we should have enum constants in capital letters.
- All variables in the enum by default "public static final"

When should we use it?
- You should use enum types when you need to represent a fixed set of constants.

-------------------------------------------------------------------------------------------------------------------------- If you liked the videos, Please subscribe to the channel!
Thank you.. Anupama!

#java #enum #enums #example #programming #freshers #experienced #shorts
Рекомендации по теме
Комментарии
Автор

how many ways we can use enum in java ?

ZeeshanKhan-uupz