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