String s = new String("12");public static void main(String[] args) throws SecurityException, NoSuchFieldException, IllegalArgumentException, IllegalAccessException {// TODO Auto-generated method stubTest ts = new Test();Field f = ts.getClass().getDeclaredField("s");//f.setAccessible(true);f.set(ts, new String("43"));System.out.println(ts.s);