How to define a constant variable in Java?

Ads

 
 

Share on Google+Share on Google+

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

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