Types of Constants:
1. String constants: String constants consist of alphanumeric characters within double quotes. Eg:”abc123”,”sachin”.
2. Integer constants: Integer constants are those which are used to store whole numbers that is numbers without decimal points. E.g.: 100,10,7 etc.
3. Character constants: Character constants are those which used to store characters are represented within single quotes. It may be a character, alphabet, single digit. E.g.: ‘7’, ‘i’ etc.
4. Boolean constants: Boolean constants represent only two values true or false.
5. Floating point constants (Real Constants): Floating point constants are used to store numbers having decimal points or i.e. real numbers. E.g.: 9.125, 7.356.