strange behevior of the JVM or compiler...
- From: "Thomas" <arabel9@xxxxx>
- Date: Sat, 7 Jul 2007 23:55:52 +0200
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 ?
.
- Follow-Ups:
- Re: strange behevior of the JVM or compiler...
- From: Manivannan Palanichamy
- Re: strange behevior of the JVM or compiler...
- From: Roedy Green
- Re: strange behevior of the JVM or compiler...
- Prev by Date: Re: If the object is an instance of a class, why was it cast?
- Next by Date: Re: Possible Loss of Precision - not caused by type conversion
- Previous by thread: hi, i am noob in java db/ => i have some problems
- Next by thread: Re: strange behevior of the JVM or compiler...
- Index(es):