+ 1

How to create constant variable in Java?

Why no const keywords in java? And how can I create a constant variable in java?

25th Aug 2017, 8:52 AM
Zeron
Zeron - avatar
2 Réponses
+ 2
Why not just final and must add static modifier
25th Aug 2017, 9:10 AM
Zeron
Zeron - avatar
0
using static final public static final double PI = 3.14;
25th Aug 2017, 9:01 AM
Da' BO$
Da' BO$ - avatar