Wednesday, July 25, 2007

Enumeration

The enum is the special arrangement provided in java to arrange the fields in it(just as an

array). Enum is used when fields are constants and known in the run time.eg.days in a week,

directions ( EAST,WEST,NORTH, SOUTH).

As Enum is like arrays but it contains only the constants thus fields in the enum are always

in Uppercase.

Enum extends java.lang.enum.

Thus Enum are not extends any thing else because multiple inheritance is not used in java.

Mangesh S. S. Waghaye ,Nagpur.

No comments: