View RSS Feed

Recent Blogs Posts

  1. Enum Types

    by , 04-26-2012 at 06:24 PM
    An enum type is considered to be a type which possesses fixed constants set in its fields. Few common examples are the week days and compass directions (values of EAST, WEST, NORTH & SOUTH).
    Enum type fields comprises of uppercase letters, as they are constants.

    Enum keywords define the enum type, in Java programming language. For example, enum type of week days shall be specified like this:
    Java Code:
    public enum Day {
        SUNDAY, MONDAY, TUESDAY, WEDNESDAY,
    ...
    Tags: enum types Add / Edit Tags
    Categories
    Tutorial