Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

What is ENUM?

Answer Posted / javamasque

1. Enum is implicitly final subclass of java.lang.Enum.
2. if an enum is a member of a class, it is implicitly static.
3. The keyword “new” can never be used with an enum, even within the enum type itself.
4. For enum constants, “equals” and “==” is same thing, and can be used interchangeably.
5. Enum constants are implicitly public static final.
6. The enum constants are its instances.
7. Only private modifier can be used before it’s constructor.
8. Enum can implement interface but can’t extends any class
9. We can override only toString() method to return any custom string.
10. The static method values() return all enum constants in an order as it found inside enum class.
11. The instance method name() returns string value of enum constant.

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How long does it take to get a loop recorder put in?

895


If c# destructors are so different to c++ destructors, why did ms use the same syntax?

973


What is the reason behind the invention of c#?

1195


Explain deadlock?

1068


Why we use extension methods in c#?

923


What is the difference between var and dynamic types in c# 4.0?

1100


In a memory when you Box and Unbox a value-type what happens?

971


How do I calculate relative time?

980


What is base class in c#?

1044


What is c# most used for?

1016


Explain About stateless and state full web service

1046


How is a strongly-named assembly different from one that isn’t strongly-named?

1107


Give an example to show for hiding base class methods?

893


What is difference between string and stringbuffer in c#?

1005


What is reflection c#?

953