hi all,
I happen to come across a Java code at my work place. Here's the scenario: There are 2 classes - ClassA and ClassB.
ClassA has nothing except 4 public static final string values inside it. Its purpose is to use those values like ClassA.variable (don't ask me why, it's not my code).
ClassB imports ClassA. I edited the string values in ClassA and compiled it. When I ran ClassB I could see it was using the old values - not the new values. I had to recompile ClassB to make it use new values from ClassA! (I had to recompile other classes that imports ClassA!)
Is this just because of JDK 1.6 or I should have known earlier to recompile ClassB also! Enlighten me. :)