Latest Tutorials| Questions and Answers|Ask Questions?|Site Map



Home Answers Viewqa Java-Beginners enumerations in java
Login         

View Questions and Answers by Category

Advertisements


 
Have Programming Question? Ask it here!
 
 
 


Ankit
enumerations in java
1 Answer(s)      5 years and 6 months ago
Posted in : Java Beginners



Advertisement
View Answers

June 3, 2009 at 10:59 AM


Hi Friend,

Java Enumerated types specifies what values can be assigned to a variable.This makes the Java code more readable.Enumerations are type safe means that if you define a method then the caller cannot pass in a value that does not correspond to an enumeration value. An Enumeration object generates a series of elements, one at a time which is used for passing through a collection.
It provides Compile-time type safety.For each enum type,a namespace has been provided by Type system.Therefore you don't have to prefix each constant name.Typesafe constants(Enum) aren't compiled into clients, so you can add, reorder or even remove constants without the need to recompile clients. You can add arbitrary fields and methods to an enum class.An enum type implements the arbitrary interfaces.

Thanks


Related Tutorials/Questions & Answers:
enumerations in java - Java Beginners
enumerations in java  Why enumerations is used in java ?????  Hi Friend, Java Enumerated types specifies what values can be assigned to a variable.This makes the Java code more readable.Enumerations are type safe
Advertisements
INNERCLASSS - Java Interview Questions
class b{ } } More at http://www.roseindia.net/help/java/i/inner... and can implement custom enumerations. For more information, please visit the following link: http://www.roseindia.net/java/master-java/inner.shtml
Java itrator interface
Java itrator interface  What is an Iterator interface?  An iterator over a collection. Iterator takes the place of Enumeration in the Java collections framework. Iterators differ from enumerations in two ways
Java - Java Beginners
Java   Can someone give me the examples regarding Java Enumeration?  Hi Friend, Enumerations are type safe means that if you define a method then the caller cannot pass in a value that does not correspond
Java - JDK Tutorials
Java - JDK Tutorials   This is the list of JDK tutorials which will useful for the Java programmers. Here you will learn how to use the different features of Java in your programming. JDK is required to be installed on your
Java Keywords
; Enumerations extend the base class Enum.This Java keyword is used to declare an enumerated... Java Keywords       There are few keywords in Java programming language. Remember, we cannot use
Java Keywords
Java Keywords       There are few keywords in Java programming language. Remember, we cannot use... with assertions . If the condition is false, the Java runtime system throws an AssertionError
Java Keywords
; Enumerations extend the base class Enum.This Java keyword is used to declare an enumerated... Java Keywords       There are few keywords in Java programming language. Remember, we cannot use
java
java  diff bt core java and java
java
java  what is java
Java
Java   Whether Java is pure object oriented Language
java
java  different between java & core java
java
java  explain technologies are used in java now days and structure java
java
java   why iterator in java if we for loop
JAVA
JAVA  how the name came for java language as "JAVA
java
java  what is java reflection
java
java  is java open source
java
what is the size of array in java ?  what is the size of array in java ? what is the mean of finalize in java
java
java   in java does not pointers concept but what is nullpointers in java?   nullpointer is a runtime Exception
Java Training and Tutorials, Core Java Training
Java Training and Tutorials, Core Java Training Introduction to online Java tutorials for new java programmers.  Java is a powerful object... applications and applets with graphics and user interfaces because Java has built
java
java  write a java program using filenotfoundexception
Java
Java  how to draw class diagrams in java
java
java   difference between class and interface
java
java  why multiple inheritance is not possible in java
java
java  explain object oriented concept in java
java
java  is java purely object oriented language
Java
Java   Whether Java is Programming Language or it is SOftware
java
java  what are JAVA applications development tools
java
java  how use java method
java
java  send me java interview questions
 

 

 

DMCA.com