A literal is a data item which consists value by itself. It cannot be referred by a name. They are constant data items. There are two types of literals: