How to define a constant variable in Java?

 
 

Share on Google+Share on Google+

Java Coder
How to define a constant variable in Java?
1 Answer(s)      4 years and 10 months ago
Posted in : Java Beginners
Ads

Hi,

How to define a constant variable in Java?

thanks

Ads
View Answers

April 10, 2013 at 6:19 PM


HI,

The Constants variables are declared using the final keyword. The values of the constant can't be changed once its declared. For more related to constant variable in java

Thanks,


Ads









Ads

 
Advertisement null

Ads