4/13/2008

Java enum examples

Simple enum. The ; after the last element is optional, when this is the end of enum definition.
public enum Color {
 WHITE, BLACK, RED, YELLOW, BLUE;  //; is optional
}
Enum embedded inside a class. Outside the enclosing class, elements are referenced as Outter.Color.RED, Outter.Color.BLUE, etc.
public class Outter {
 public enum Color {
   WHITE, BLACK, RED, YELLOW, BLUE
 }
}
Enum that overrides toString method. A semicolon after the last element is required to be able to compile it. More details on overriding enum toString method can be found here.
public enum Color {
 WHITE, BLACK, RED, YELLOW, BLUE;  //; is required here.

 @Override public String toString() {
   //only capitalize the first letter
   String s = super.toString();
   return s.substring(0, 1) + s.substring(1).toLowerCase();
 }
}
Enum with additional fields and custom constructor. Enum constructors must be either private or package default, and protected or public access modifier is not allowed. When custom constructor is declared, all elements declaration must match that constructor.
public enum Color {
 WHITE(21), BLACK(22), RED(23), YELLOW(24), BLUE(25);

 private int code;

 private Color(int c) {
   code = c;
 }

 public int getCode() {
   return code;
 }
Enum that implements interfaces. Enum can implement any interfaces. All enum types implicitly implements java.io.Serializable, and java.lang.Comparable.
public enum Color implements Runnable {
 WHITE, BLACK, RED, YELLOW, BLUE;

 public void run() {
   System.out.println("name()=" + name() +
       ", toString()=" + toString());
 }
}
A sample test program to invoke this run() method:
for(Color c : Color.values()) {
 c.run();
}
Or,
for(Runnable r : Color.values()) {
 r.run();
}
A more complete example with custom fields, constructors, getters, lookup method, and even a main method for quick testing:
import java.util.HashMap;
import java.util.Map;

public enum Status {
    PASSED(1, "Passed", "The test has passed."),
    FAILED(-1, "Failed", "The test was executed but failed."),
    DID_NOT_RUN(0, "Did not run", "The test did not start.");

    private int code;
    private String label;
    private String description;

    /**
     * A mapping between the integer code and its corresponding Status to facilitate lookup by code.
     */
    private static Map<Integer, Status> codeToStatusMapping;

    private Status(int code, String label, String description) {
        this.code = code;
        this.label = label;
        this.description = description;
    }

    public static Status getStatus(int i) {
        if (codeToStatusMapping == null) {
            initMapping();
        }
        return codeToStatusMapping.get(i);
    }

    private static void initMapping() {
        codeToStatusMapping = new HashMap<Integer, Status>();
        for (Status s : values()) {
            codeToStatusMapping.put(s.code, s);
        }
    }

    public int getCode() {
        return code;
    }

    public String getLabel() {
        return label;
    }

    public String getDescription() {
        return description;
    }

    @Override
    public String toString() {
        final StringBuilder sb = new StringBuilder();
        sb.append("Status");
        sb.append("{code=").append(code);
        sb.append(", label='").append(label).append('\'');
        sb.append(", description='").append(description).append('\'');
        sb.append('}');
        return sb.toString();
    }

    public static void main(String[] args) {
        System.out.println(Status.PASSED);
        System.out.println(Status.getStatus(-1));
    }
}
To run the above example:
java Status

Status{code=1, label='Passed', description='The test has passed.'}
Status{code=-1, label='Failed', description='The test was executed but failed.'}

157 comments:

Shean said...

Seriously, this is a great post ;)

Been looking for almost 30min all over google for different enum examples and your single post showed them all, thanks alot ^^

Bhushan Bhangale said...

Good examples for understanding enum

Anonymous said...

This is an great INCORRECT post. Cannot do:

public enum Color {
WHITE(21), BLACK(22), RED(23), YELLOW(24), BLUE(25);

private int code;

private Color(int c) {
code = c;
}

public int getCode() {
return code;
}
}

Anonymous said...

THIS IS SO CORRECT. IT WORKS FINE.
public enum Color {
WHITE(21), BLACK(22), RED(23), YELLOW(24), BLUE(25);

private int code;

private Color(int c) {
code = c;
}

public int getCode() {
return code;
}
}

Marco Polo said...

This is a great incorrect post. You cannot say 'anonymous'. instead say your real name here.

Ramraj said...

Great post on java enums. Can you explain overriding methods inside enum variables or emum method. I dont any examples on this.

sihag said...

This is absolutely correct and help full post .....thank you very much for the post

Anonymous said...

Overriding enum example

public enum Element{

EARTH, WIND,
FIRE {
public String info() {
return "HOT";
}
};
public String info() {
return "element";
};

}

Anil Kumar Talla said...

Nice Info Thanks!!

ahmed.kamel said...

The example of implement interface and implement runnable (This example doesn't has any relation with threading) just explain the enum can implement any interface and this correct.
Thanks

Anonymous said...

Its wrong you need to have default construstor for Enums. Hence the original post may not compile.

Brian said...

You do not need a default constructor, please see: http://java.sun.com/j2se/1.5.0/docs/guide/language/enums.html

Anonymous said...

Enums are one of the few things that work with switch/case statements as well:

switch(db.getType()) // returns an enum element
{
case MYSQL: // no need to qualify names
...
case POSTGRES:
...
}

Dima said...

Thank you very much for this article!

Anonymous said...

It was owsumm :)

Anonymous said...

Very good post. Thanks.

Anonymous said...

Great post, thanks for it! =)

Anonymous said...

nice post .............

Anonymous said...

nice blog.
for java related material you can refer this link Click Here

Anonymous said...

Java is such a retarded language... like taking C++ and blowing its kneecaps off.

Anonymous said...

Very nice and self explanatory article, was reading quite a few article on it but this is best one.
@Ramraj
You can go over on these articles Enum Examples or Enum in java

Rony said...

Wonderful tutorial man. Thank you.

Anonymous said...

this is helpful

milan said...

More about Enum.
----------------
You cannot create Object of Enum type. It's objects are fixed.

public enum Color {
WHITE(21), BLACK(22), RED(23), YELLOW(24), BLUE(25);

private int code;

private Color(int c) {
code = c;
}

public int getCode() {
return code;
}
}
In this example WHITE, BLACK,... are object of Enum type Color.

Thangavel L said...

Its a good example for understanding about the Enum.


Thanks keep on posting like this.

Sathish said...

It works great!

Anonymous said...

public enum Books {
MyBook, HisBook, YourBook;
};

class Test {
public static void main(String args[]) {
for(Books b : Books.values()) {
System.out.println(b);
System.out.println(b.ordinal());
}
}
}

This code compiles well. But when run generates "Exception in thread "main" java.lang.NoSuchMethodError: main".
What is the problem here?

javahowto said...

The Test class should be

public class Test {...}

Anonymous said...

Thank you very much...

It's easier to understand each usage... Thank you again...

Best of Android said...

Very useful examples. Thank you :)

Anonymous said...

Can you suggest me in a case where if i have a condition which consists of the following code

enum CoffeeSize
{
BIG(8),
HUGE(10),
OVERWHELMING(16)
{
public String getLidCode()
{
return "A";
}
};
CoffeeSize(int ounces)
{
this.ounces = ounces;
}
private int ounces;
public int getOunces()
{
return ounces;
}
public String getLidCode()
{
return "B";
}
}
Now how can i override this getLidCode() & get the Output in the Class.

Anonymous said...

really a nice post..............

NHarvey said...

You know what this is missing: How do you use the numbers to initialize an enum?
What I mean is, I have a direction enum:

<i style="font-family: Courier>
public enum Direction {
NORTH (0), EAST (90), SOUTH (180), WEST (270);
private int degrees;
Direction(int arg1) {
degrees=arg1;
}
}
</i>

And I want to be able to set certain variable of type Direction equal to 180 (for SOUTH). Is this possible, or can you only do that when you have strings in parentheses?

examinationtime said...

Very good post.
In short, Enum can have constructor, methods and inbuilt objects.

Anonymous said...

enum Bear
{
KF(100),RC(150),FO(200),TEN(),Two(10,20);
int price,x,y;
Bear(int x,int y)
{
this.x=x;
this.y=y;
price=x+y;
}
Bear(int price)
{
this.price=price;
}
Bear()
{
price=500;
}
public int getPrice()
{
return price;
}

}
class EnumDemo1
{
public static void main(String[] args)
{
Bear b1=Bear.KF;
System.out.println(b1+"--"+b1.price);
Bear b2[]=Bear.values();
for(Bear b3:b2)//enhanced for loop
{
System.out.println(b3+"----"+b3.getPrice());
}

}
}

Anonymous said...

what is difference b/w these two:

RED;
RED();

Sankar lp said...

The following are the compilation errors:
Enum types must not be declared abstract
To explicitly declare an enum type to be final.
To attempt to explicitly instantiate an enum type
To declare an abstract method within the enum constant body

Sankar.lp
Java Training

Mauricio said...

Thanks :)

Hasini Thamarasa said...

great.helpful post

Zaan said...

In this method:

public static Status getStatus(int i) {
if (codeToStatusMapping == null) {
initMapping();
}
Status result = null;
for (Status s : values()) {
result = codeToStatusMapping.get(i);
}
return result;
}

I do not see why you have a for loop. A hashmap is meant to facilitate the lookup in one go, and at the point where you do the get, it's supposedly filled correctly.

Am I missing something, or is the example imperfect?

javahowto said...

The for loop in getStatus(int) method is indeed not needed. It does the same, repetitive lookup multiple times. I've fixed it. Thanks for spotting it.

Anonymous said...

Good Tuto, Thanks ;

Becks said...

Genius post!

I've been inspired to give a more efficient version of the getStatus() function in the complex example.

Here goes:

private static Status[] statusArr; // only required member variable

public static Status getStatus(int i) {
if (statusArr == null) {
statusArr = Status.values();
}
return statusArr[i];
}

Anonymous said...

Who's there ?

Anonymous said...

Great post!

Anonymous said...

Beautiful and elegant.

Thanks for posting this.

Pieter Malan.

Anonymous said...

One of the best article to learn Enum. I would also suggest to read through following comprehensive 10 Enum Examples in Java and 15 Java Enum Interview Questions. Both of them provide good overview of different enum features.

Mallikarjuna said...

very much useful

David F said...

Becks said...
June 21, 2013 8:40 AM

In response to Becks post about "more efficient method" -- just wanted to point out to others that this only works if you let the ENUM values be assigned in order 0,1,2,3,4,5... In the example provided by the author, Becks solution would not work because it would check into an array with a "-1" value for example.

In summary, Becks optimization is only useful in limited circumstances. Happy coding!

java2novice said...

nice... for more java examples http://www.java2novice.com site

nabil said...

great post about enums, thanks a lot for the effort

nabil said...

great post about enums, thanks a lot

Nicolas COQUELET said...

In the complex example, usage of Hashmap cache access is an anti-pattern

1. Hashmap create useless memory overhead (hashmap has bad footprint)

2. hashmap get() isn't really efficient vs values loop

3. please stop to make small inefficient optimization, jvm do it for us

4. values() is more faster than map, try it ;)

-----------

public static Status getStatusWithoutMap(int i) {
for (Status s : values) {
if (s.code == i) {
return s;
}
}
return null;
}

public static void main(String[] args) {

long start = System.currentTimeMillis();

for (int i = 0; i < 100000; i++) {
Status.getStatusWithoutMap(25);
}
System.out.println((System.currentTimeMillis() - start) + "ms");

start = System.currentTimeMillis();

for (int i = 0; i < 100000; i++) {
Status.getStatus(25);
}

System.out.println((System.currentTimeMillis() - start) + "ms");
}


Porfirio Mendez Ocampo said...

Thanks bro...

tech blogger said...

awesome tips on java enum!

Expert4Assignment said...

this example also help you
public enum Color {
WHITE(21), BLACK(22), RED(23), YELLOW(24), BLUE(25);

private int code;

private Color(int c) {
code = c;
}

public int getCode() {
return code;
}
}

Sawan Kumar said...

Split only after comma 3 times appear in Java

Question asked by my friend :
I have a string that looks like this:
0,0,1,2,4,5,3,4,6
What I want returned is a string[] that was split after every 3rd comma, so it would look like this:
[ "0,0,1", "2,4,5", "3,4,6" ]

JAVA J2EE Training in Chennai said...

Thanks for sharing such informative article on Java technology. It is most preferred technology among developers to create stunning mobile application fast and easy. It also created massive career opportunity for aspiring professionals. JAVA Training Institutes in Chennai

Answerz Answerz said...

Very Useful. For more examples visit http://answersz.com

Victoria John said...

Java is one of the popular technologies with improved job opportunity for hopeful professionals. Java Training in Chennai helps you to study this technology in details.

Victoria John said...

Thanks for sharing this informative blog.. If anyone want to get HTML5 Training in Chennai please visit FITA academy located at Chennai, Velachery. Rated as No.1 training and placement academy in Chennai.

kovalan Jayamurugan said...

Very post about Java spring batch is very useful to me. I tried your database creation code and its working great. Thanks for your informative post. This article is very useful for java professionals and students undergoing java training in Chennai.

Roshini Balu said...
This comment has been removed by the author.
Roshini Balu said...

tried this enum coding its work good thank you for this post, and its very useful for the fresher who wants to take a Java Training In Chennai

Roshini Balu said...

the enum concept what you have explained here is crystal clear thanks for sharing your post
JAVA J2EE Training Institutes in Chennai

jhansi joe said...


Thanks for sharing your view to our knowledge’s, its helps me plenty keep sharing…

JAVA Training in Chennai

Anonymous said...

Really a good post.Thank you very much.

Java Prime Number said...

Thanks for sharing good examples.

kovalan Jayamurugan said...

Thanks for sharing informative article on Node.js. In recent years, this technology is going to be the future of web design and development technology. I am going to include Node.js in my Web designing course in Chennai syllabus in educating my students.

karthik vijay said...

Thanks for sharing informative article!!! Your article helped me a lot to understand the importance of Best PHP Training in Chennai to secure lucrative job in web design and development industry.

Melisa said...

It was nice post, actually here i can learn the enumeration & its functions clearly, so keep sharing your updates regularly to improve my skills.
Regards,
Web designing course in chennai

dhanamlakshmi palu said...

Thanks for sharing this valuable information to our vision. You have posted a trust worthy blog keep sharing. Web desigining Training in chennai | Web desigining Training chennai | Web desigining course in chennai | Web desigining course chennai

Andrew Son said...

The information you have given here are most worthy for me. I have implemented in my training program as well, thanks for sharing.

Hadoop Training Chennai
Hadoop Training in Chennai

Arjun Rishi said...

Thank you for this wonderful tutorial. It was really helpful.

digital marketing institute

Arjun Rishi said...

Thank you for this wonderful tutorial. It was really helpful.

digital marketing institute

jhansi joe said...

Thanks of sharing this post…Python is the fastest growing language that helps to get your dream job in a best way, so if you wants to become a expertise in python get some training on that language.
Regards,
Python Training in Chennai|python training chennai|Python Course in Chennai

Roshini RS said...

The information you have deliver here is really useful to make my knowledge good. Thanks for your heavenly post. It is truly supportive for us and I have accumulated some essential data from this blog.
Regards,
Informatica training institute in Chennai|Best Informatica Training Institute In Chennai|Informatica training in chennai

Pooja Doss said...

Oracle DBA Training in Chennai
Thanks for sharing this informative blog. I did Oracle DBA Certification in Greens Technology at Adyar. This is really useful for me to make a bright career..

Pooja Doss said...

Whatever we gathered information from the blogs, we should implement that in practically then only we can understand that exact thing clearly, but it’s no need to do it, because you have explained the concepts very well. It was crystal clear, keep sharing..
Websphere Training in Chennai

Pooja Doss said...

Data warehousing Training in Chennai
I am reading your post from the beginning, it was so interesting to read & I feel thanks to you for posting such a good blog, keep updates regularly..

Pooja Doss said...

Selenium Training in Chennai
Wonderful blog.. Thanks for sharing informative blog.. its very useful to me..

Pooja Doss said...

Oracle Training in chennai
Thanks for sharing such a great information..Its really nice and informative..

Pooja Doss said...


SAP Training in Chennai
This post is really nice and informative. The explanation given is really comprehensive and informative..

Pooja Doss said...

This information is impressive..I am inspired with your post writing style & how continuously you describe this topic. After reading your post,thanks for taking the time to discuss this, I feel happy about it and I love learning more about this topic
Android Training In Chennai In Chennai

Pooja Doss said...

Pretty article! I found some useful information in your blog, it was awesome to read,thanks for sharing this great content to my vision, keep sharing..
Unix Training In Chennai

Pooja Doss said...

I found some useful information in your blog, it was awesome to read, thanks for sharing this great content to my vision, keep sharing..
SalesForce Training in Chennai

Pooja Doss said...

There are lots of information about latest technology and how to get trained in them, like Best Hadoop Training In Chennai in Chennai have spread around the web, but this is a unique one according to me. The strategy you have updated here will make me to get trained in future technologies Hadoop Training in Chennai By the way you are running a great blog. Thanks for sharing this blogs..

Diya Patel said...

This information is impressive; I am inspired with your post writing style & how continuously you describe this topic. After reading your post, thanks for taking the time to discuss this, I feel happy about it and I love learning more about this topic..
Informatica Training in chennai | QTP Training in Chennai



Neethu Sharma said...

Excellent information with unique content and it is very useful to know about the information based on blogs.
Hadoop Training In Chennai | oracle apps financials Training In Chennai | advanced plsql Training In Chennai

Neethu Sharma said...

I am very impressed with the article I have just read,so nice.......
QTP Training In Chennai | Selenium Training in Chennai | Oracle Training in Chennai

jhansi joe said...

I am reading your post from the beginning, it was so interesting to read & I feel thanks to you for posting such a good blog, keep updates regularly.
Regards,
Python Training in Chennai|Node JS training in chennai|cognos Training Chennai

Roshini Fita said...


Thanks for taking a time to discussing about this worth topic, it helps me a lot to improve my skill set. I would like see your updates , so keep blogging.
Regards,
sap training in Chennai|SAP Course in Chennai|SAP Training|SAP training in chennai |SAP course in chennai

caroline jesi said...


This data is magnificent. I am impressed with your writing style and how properly you define this topic, Thanks for sharing...
Regards,
ccna training in Chennai|ccna training institute in Chennai

Yasmin Priya said...

Thanks for sharing your ideas to our vision. It’s really useful for me. Selenium is an automation testing tool used for web applications. I did Selenium Training in Chennai at besant technologies. It’s useful for me to make a bright career in IT industry. For more details please visit our academy located at Chennai.

Yasmin Priya said...

Thanks for sharing your innovative ideas to our vision. I have read your blog and I gathered some new information through your blog. Your blog is really very informative and unique. Keep posting like this. Awaiting for your further update.
Thanks & Regards
Big Data Training in Chennai | Big Data Training in Chennai

Steve Smith said...

Great and Useful Article.

Online Java Course

Java Online Training

Java Course Online

J2EE training

online J2EE training

Best Recommended books for Spring framework

Java Interview Questions












Java Training Institutes in Chennai

Java Training in Chennai

J2EE Training in Chennai

java j2ee training institutes in chennai

John Son said...

Hi, I am really happy to found such a helpful and fascinating post that is written in well manner. Thanks for sharing such an informative post. keep update your blog.
Regards.
Big Data Training in Chennai

Cse It said...

I am highly thankful for this post. I’ve been looking everywhere for this! Thank kindness I found it on bloging effort. You’ve made my day! Thank you again!

sap ps online training
sap hana development online training
sap isu billing&invoice online training

khalid said...




MIDSUMMER SEASON WEDDING WEAR SHOES
Handbag & Clutches For Hot Girls
Front Open Double Shirt
Fashion Gallery Lehenga Choli
Stylo Best Mehndi Designs
HANDBAGS FOR WOMEN FASHION
Latest Sherwani Designs
Bridal Jewellery Set
Zara Shahjahan Eid Dresses
Mehndi Patterns for EID
SUMMER SEASON LADIES DRESSES FASHION
Sophia Tolli Collection
Earrings In Gold Collection
Actress Maya Ali – Fashion Collection
Bridal Gowns Collection
LADIES BLAZER STYLES OUTFITS
MEHNDI DRESS DESIGNS
BRIDAL SHOES
SHIRTS GRAY MAXI SKIRT SKIRTS
BRIDAL DRESSES WESTERN STYLE
LAWN AND CHIFFON OUTFITS
classic lawn suits
mix eid dresses
midsummer kurta
anarkali suits

khalid said...

REVLON NAIL POLISH COLORS
lehnga choli dresses
bridal makeup
ball garments
babydoll night wear dresses
MEN WEAR WEDDING SHERWANI
Jewelry Women Wear
Saheli Couture By Preity Zinta Dresses
Parties Hairstyle
Zainab Chottani Pretty Suits
STYLISH SUNGLASSES DESIGNS
FROCKS DESIGNS FASHION
LONG GOWNS OUTFITS FASHION
HUMAN SALMAN KHAN STYLISH DRESSES
UTSAV FASHION NET INDIAN SAREES
Fancy Lawn Clothes
Nail Designs For UK Girls
Girls Footwear Selection
Pakistani Lehenga Clothes

Nikshitha S said...
This comment has been removed by the author.
Best Multimedia (Dilsukhnagar Arena) said...

good blog...web design course

apttree said...

very useful information

Bank exam pattern questions and answers

apttree said...

very nice information

SBI clerk exam questions and answers

Ibps po exam questions and answers


Tnpsc exam questions and answers

Mythily Muthu said...
This comment has been removed by the author.
UMA MAHESWARI said...

Hi,I will be learning that the lot of new information.
oracle training institute

UMA MAHESWARI said...
This comment has been removed by the author.
UMA MAHESWARI said...

• Looking for real-time training institute
sas training institute

Lenova Services said...

Excellent post!!!.

lenovo thinkpad service centers

lenovo ideapad service center

Xplorant Seo said...

Wonderful blog.. Thanks for sharing informative blog.. its very useful to me..

iOS Training in Chennai

SKARtec Digital Marketing Academy said...

Nice blog.
Best Digital Marketing Course in Chennai

Gonzalez Caroline said...

This article is really fantastic and thanks for sharing the valuable post.
descargar facebook gratis | descargar facebook | facebook descargar

Eric said...

Amazing blog post...I enjoyed reading this blog content ...awasome

Java Break Statement said...

Amazing work..keep sharing this awesome stuff

jazz said...

Finding the time and actual effort to create a superb article like this is great thing. I’ll learn many new stuff right here! Good luck for the next post buddy..
PHP training in chennai

sunilkumarkuppam said...


Thanks for sharing this information and keep updating us. This is informatics and really useful to me.
Selenium Training in Chennai | Selenium Training | Selenium Course in Chennai

CALL360 said...

Such a wonderful post

Indias Fastyest Local Business Portal,
CALL360 Leading Business portal in India.

mageswari j said...

GREEN WOMEN HOSTELGreen Women hostel is one of the leading Ladies hostel in Adyar and we serving an excellent service to Staying people, We create a home atmosphere, it is the best place for Working WomenOur hostel Surrounded around bus depot, hospital, atm, bank, medical Shop & 24 hours Security Facility

Albert Smith said...

Wow, thanks for sharing this information. It has helped me to practice my Java programming skills n addition to learning ne syntax that I was not familiar with. I will also be recommending this site to our professional writers who offer professional writing and editing services to students. Check out some of the articles they have written by clicking on Advantages of Using Online Editing Services

Syed Maroof said...

Thank you very much for the sharing! COOL.. Pakistani Bridal Dresses

vinito stany said...

Nice it seems to be good post... It will get readers engagement on the article since readers engagement plays an vital role in every blog.. i am expecting more updated posts from your hands.
PHP training in chennai

Aptron said...

Nice post!! Thanks for sharing.
JAVA Training in Delhi | ASP.NET Training Company in Delhi | Big Data Training In Delhi

Sameer khan said...

Nice thought! Thanks for Sharing that Info.

Web Development Training In Gwalior


Java Training in Gwalior


ASp.Net
training in Gwalior

vigneswaran said...

We'll have to share it marvelous posting.I like that your generous useful article.I read all your blog is humbled excellent blogger commenting.hadoop training in chennai | best selenium training in chennai | hadoop training institute

SKARtec SEO said...

Our Digital Marketing Training is tailored for beginners who want to learn how to stand out digitally, whether it is for their own business or a personal brand.

digital marketing course

Priya Kannan said...

This information really worth saying, i think you are master of the content and thank you so much sharing that valuable information and get new skills after refer that post.
Websphere Training in Chennai

Tanya said...

Nice post!!Traning Institute

vigneswaran said...

This article is very much helpful and I hope this will be a useful information for the needed one. Keep on updating these kinds of informative things...
Hadoop Training in Chennai
Hadoop Training Institute in Chennai

john stany said...


You have provided an nice article, Thank you very much for this one. And i hope this will be useful for many people.. and i am waiting for your next post keep on updating these kinds of knowledgeable things...

Android App Development Company

Vũ Diệu Linh said...

I enjoyed on reading your blog post. Very interesting to read this article.I would like to thank you for the efforts you had made for writing this awesome article. Please visit my website, Friv 4000 Games is where all the free friv games.
Friv 4000

Geetha Devi said...

It is really a great work and the way in which u r sharing the knowledge is excellent.
Thanks a lot! You made a new blog entry to answer my question; I really appreciate your time and effort.
java training institutes in chennai | java j2ee training institutes in velachery

vigneswaran said...

It a ridiculous blog post and I have to salute for your hard work.your share this idea is really great.Thank for very useful to us.In these interview question very useful for my job career .I really appreciate our marvelous blog article.If want become to learn for Java Training To reach us, Java Training in Chennai | Java Training Institute in Chennai

Karthika Shree said...

It's interesting that many of the bloggers to helped clarify a few things for me as well as giving.Most of ideas can be nice content.The people to give them a good shake to get your point and across the command.
Java Training in Chennai

Sharon Sandy said...

great and nice blog thanks sharing..I just want to say that all the information you have given here is awesome...Thank you very much for this one.
web design Company
web development Company
web design Company in chennai
web development Company in chennai
web design Company in India
web development Company in India

john stany said...

Nice it seems to be good post... It will get readers engagement on the article since readers engagement plays an vital role in every blog.i am expecting more updated posts from your hands.
iOS App Development Company
iOS App Development Company

Albert Smith said...

Wow, the Java enum examples have helped me to polish my Java programming skills. Additionally, I have learned new facts and ideas from the shared examples. Thanks s lot for taking the time to write the programs and share with us I will be recommending this site to my colleagues who offer Undergraduate Papers Editing Service.

louis philip said...

This article is very much helpful and i hope this will be an useful information for the needed one. Keep on updating these kinds of informative things...
Fitness SMS
Fitness Text
Salon SMS
Salon Text
Investor Relation SMS
Investor Relation Text

isabella jacob said...

it is really amazing...thanks for sharing....provide more useful information...
Mobile app development company

jenny Honey said...

Thanks for sharing!
Web design company in Hyderabad
Digital Marketing company in Hyderabad

Priya Rajendran said...

Interesting article to read.. Concept explanation are very clear so easy to understand..

big data training in velachery | hadoop training institute in velachery

preethi s said...

Thanks a lot! You made a new blog entry to answer my question; I really appreciate your time and effort.
java j2ee training in chennai |
Top 10 java training institute in chennai

lascells said...

Thank you for taking the time and sharing this information with us. It was indeed very helpful and insightful while being straight forward and to the point.
mcdonaldsgutscheine | startlr | saludlimpia

Sharon Sandy said...

great and nice blog thanks sharing..I just want to say that all the information you have given here is awesome...Thank you very much for this one.
web design Company
web development Company
web design Company in chennai
web development Company in chennai
web design Company in India
web development Company in India

Anonymous said...

here you get the detailed tutorial about enum

caroline jesi said...

Thanks for sharing your informative article. As every business owner desire to be the part of digital marketing, there is massive demand for attractive and responsive website. It automatically increases the career prospects of web design and development professionals. Taking Web designing course in Chennai will help students to enter web design industry with good salary package.

unknown said...

Java is a high-level programming language.Due to its stability and scalability, you can find Java on mobiles, desktops, large scale applications etc. Java is also gaining big in the field of Internet of Things (IoT).
Best Java training institute in chennai

selva raj said...

Thanks for sharing clear explanation for java using example program.
Java courses in chennai

unknown said...

The Spring Framework is a lightweight framework for developing Java enterprise applications. It provides high-performing, easily testable and reusable code. Spring handles the infrastructure as the underlying framework so that you can focus on your application.Spring is modular in design, thereby making creation, handling and linking of individual components so much easier.Spring implements Model View Container(MVC) design pattern.
Spring mvc hello world example

Ezhilarasu L said...

good explanation thank you..

Java Training Institute in Chennai

Aswin Karthick said...

Thank you very useful java training in chennai, core java training in chennaiThank you very useful seo training in chennai, struts training in chennai
me project centers in chennai

unknown said...

The Spring Framework is a lightweight framework for developing Java enterprise applications. It provides high performing, easily testable and reusable code. Spring handles the infrastructure as the underlying framework so that you can focus on your application.Spring is modular in design, thereby making creation, handling and linking of individual components so much easier. Spring implements Model View Container(MVC) design pattern.
Spring mvc hello world example

subash said...
This comment has been removed by the author.
sobiga J said...

Thank you !! Amazing Write Up !!
Robotics training in chennai
Php training in chennai

Ajay Raj said...

Vmware Training in Chennai
CCNA Training in Chennai
Angularjs Training in Chennai
Google CLoud Training in Chennai
Red Hat Training in Chennai
Linux Training in Chennai
Rhce Training in Chennai

suresh H said...

Pretty good post. I just stumbled upon your blog and wanted to say that I have really enjoyed reading your blog posts. Anyway, I'll be subscribing to your feed and I hope you post again soon. Big thanks for the useful info.
QlikView Training in Chennai
Informatica Training in Chennai
Python Training in Chennai

Mohan said...

Thank you so much for sharing... downloading Lucky Patcher app

Salman said...

Thank you !! Very usefull !!
android training in chennai
advance java training in chennai
Arduino training in chennai