What is an enumeration ?


An enumeration is an interface containing methods for accessing the underlying data structure from which the enumeration is obtained. It is a construct which collection classes return when you request a collection of all the objects stored in the collection. It allows sequential access to all the elements stored in the collection.



Explore posts in the same categories: Java Interview Questions


BOOKMARK THIS : del.icio.us | Digg it | Furl | reddit |


Related Questions :

  • What are Vector, Hashtable, LinkedList and Enumeration?
  • Vector : The Vector class provides the capability to implement a growable array of objects. Hashtable : The Hashtable class implements...
  • What is the benefit of using an enum rather than a #define constant?
  • The use of an enumeration constant (enum) has many advantages over using the traditional symbolic constant style of #define....
  • What is the difference between structures and enumeration?
  • Unlike classes, structs are value types and do not require heap allocation. A variable of a struct type directly contains...
  • What is Value type and refernce type in .Net?
  • Value Type : A variable of a value type always contains a value of that type. The assignment to a...
  • How can you enable automatic paging in DataGrid ?
  • Using the Built-In Paging Controls To use default paging, you set properties to enable paging, set the page size, and specify...
  • What are the methods of Entity Bean?
  • An entity bean consists of 4 groups of methods: 1. create methods: To create a new instance of a CMP entity...
  • More questionson Java Collections
  • What is the difference between set and list? A Set stores elements in an unordered way and does not contain duplicate...

    Comments are closed.