您的位置:首页 > 运维架构 > Linux

U盘移动硬盘引导启动安装linux系统Centos 6.4

2014-05-09 10:20 1036 查看
class AnotherTest {
private int i = 1;
private final int j = 2;

private int f() {
return j;
}

}

public class Test {
public static void main(String[] args) throws Exception {
AnotherTest a = new AnotherTest();
Field f1 = a.getClass().getDeclaredField("i");
f1.setAccessible(true);
f1.setInt(a, 4);
System.out.print(f1.getInt(a));

Field f2 = a.getClass().getDeclaredField("j");
f2.setAccessible(true);
f2.setInt(a, 5);
System.out.print(f2.getInt(a));

Method method = a.getClass().getDeclaredMethod("f");
method.setAccessible(true);
System.out.print(method.invoke(a));

}
}

 

请问以上程序的输出是:
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: 
相关文章推荐