首页 相关文章 论全世界所有程序员都会犯的错误2

论全世界所有程序员都会犯的错误2


  下面是我用javap来反组译程序1的示范: C: javap -c -classpath . Singleton Compiled from MyMain.java class Singleton extends java.lang.Object { public static int counter1; public static int counter2; public static Singleton getInstance(); static {}; } Method Singleton() 0 aload_0 1 invokespecial #1 4 getstatic #2 7 iconst_1 8 iadd 9 putstatic #2 12 getstatic #3 15 iconst_1 16 iadd 17 putstatic #3 20 return Method Singleton getInstance() 0 getstatic #4 3 areturn Method static {} 0 new #5 3 dup 4 invokespecial #6 7 putstatic #4 10 iconst_0 11 putstatic #3 14...[ 查看全文 ]

2016-02-19 标签:

论全世界所有程序员都会犯的错误2的相关文章

手机页面
收藏网站 回到头部