New course! Every coder should learn Generative AI!
Try a free lesson+ 1
How to create constant variable in Java?
Why no const keywords in java? And how can I create a constant variable in java?
2 Answers
+ 2
Why not just final and must add static modifier
0
using static final
public static final double PI = 3.14;