This post originated from an RSS feed registered with Java Buzz
by Javin Paul.
Original Post: Java Enum Concepts and Fundamentals - Example tutorial
Feed Title: Java67
Feed URL: http://www.java67.com/feeds/posts/default?alt=rss
Feed Description: Java and technology tutorials, tips, questions for all programmers.
Java Enum was one of the best feature added on JDK 1.5 Tiger release
along with Generics,
Autoboxing
and varargs. Enum in Java represents fixed number of well known things e.g. number of
day in Week, number of months in calendar year etc. Unlike C and C++ Enum
in Java are much powerful and they are not integer constant, Instead Enum
are Type like class
or interface
which provides compile time type safety. In this Java Enum tutorial we
will see couple of important points about Java Enum which help to understand
Enum better and get most out of it.