class Test { public void foo(){ System.out.println(const1.charAt(0)); } public static final String const1 = ""; }