Constant is an identifier whose value can not be changed.In java language these constants are classified into following types
- Numerical constants
- Character constants
- Numerical constants:
Numerical means numbers .these are classifed into 2 types
- Integer constants
- Real constants
- Integer constants:
Integer constants menas + or - numbers.
- Real constants:
Real constants means floating values or decimal values.
These are classified into fllowing types
- Single character constants
- String character constants
- Single character constants:
If any character or symbol or number enclosed with single quotation.
- String character constants:
Group of characters or symbols or numbers encliosed with double quotation.