T
Thomas
Hello again . I m writing code like this using JCreator :
class dummy{
public final static long mod = (long)2 * 3 * 5;
}
and then from the second class I call :
System.out.println(dummy.mod);
and if I do try to change the value of ' mod ' in code by changing
initialization line I STILL GET THE OLD VALUE NO MATTER HOW MANY TIMES I DO
COMPILE AND RUN. Is it the bug in JVM or in my IDE ?
class dummy{
public final static long mod = (long)2 * 3 * 5;
}
and then from the second class I call :
System.out.println(dummy.mod);
and if I do try to change the value of ' mod ' in code by changing
initialization line I STILL GET THE OLD VALUE NO MATTER HOW MANY TIMES I DO
COMPILE AND RUN. Is it the bug in JVM or in my IDE ?