Final Fields
And just like regular final fields, you always need to give an initial value to global final fields.
final int x = 0;
void main() {
System.out.println(x);
}
Final fields of course cannot be changed.
And just like regular final fields, you always need to give an initial value to global final fields.
final int x = 0;
void main() {
System.out.println(x);
}
Final fields of course cannot be changed.