Java Online Training In Andhra Pradesh and Telangana
Opening Hours :7AM to 9PM
Next Topic: Variable
Constant is an identifier whose value can not be changed.
int x=10; here
is a constant
is a datatype
In java language these constants are classified into following types
Numerical means numbers .these are classified into 2 types
Integer constants menas + or - numbers.
Real constants means floating values or decimal values.
These are classified into following types
1.Single character constant
2.String character constant
Single Character Constant:
If any character or symbol or number enclosed with single quotation.
String Character Constant:
Group of characters or symbols or numbers enclosed with double quotation.
What is Constant
What is Numerical Constants
What is Integer Constant
What is Real Constant
What is Character Constants
What is Single Character Constants
What is String Character Constants