Main.java: ---------- package testcase; public class Main { public static final String example = "foofoo"; // on 2nd run set to "barbar" public static void main(String[] args) { System.out.println("Value in the same class: " + example); System.out.println("Value in helper class: " + new Helper().example()); } } Helper.java: ------------ package testcase; public class Helper { public String example() { return Main.example; } } 1st run output: --------------- run: Value in the same class: foofoo Value in helper class: foofoo BUILD SUCCESSFUL (total time: 0 seconds) 2nd run output: --------------- run: Value in the same class: barbar Value in helper class: foofoo BUILD SUCCESSFUL (total time: 0 seconds) System specs: ------------- Product Version: NetBeans IDE 6.5 (Build 200811100001) Java: 1.6.0_11; Java HotSpot(TM) Client VM 11.0-b16 System: Windows XP version 5.1 running on x86