Hi,
I tried the following code
class
Test {
static int x ; ---> line 1
x = 3;
public static void main(String[] args) {
}
}
even if I substitute int x (or) final int x (or) final static int x
I get a compile error.
Should a instance variable always be a compile time constant.cant we assign them values at runtime.
Thanks,
Sumi