What is the behavior of the following code regarding final variables?
public class FinalVariableTest {
public static void main(String[] args) {
final int x;
x = 100;
System.out.println(x);
}
}
What is the behavior of the following code regarding final variables?
public class FinalVariableTest {
public static void main(String[] args) {
final int x;
x = 100;
System.out.println(x);
}
}