上善若水
          In general the OO style is to use a lot of little objects with a lot of little methods that give us a lot of plug points for overriding and variation. To do is to be -Nietzsche, To bei is to do -Kant, Do be do be do -Sinatra
          posts - 146,comments - 147,trackbacks - 0

          Java接口中的字段默認都是靜態常量,不管在編碼的時候有沒有顯示的指定static或者final。

           

          如以下接口:

          public interface AccessFlag {
              
          public int a = 10;
              
          public static int b = 20;
              
          public final int c = 30;
              
          public static final int d = 40;
          }

           

          它編譯生成的二進制代碼如下:

          public abstract interface org.levin.classfilereader.AccessFlag {

           public static final int a = 10;

           public static final int b = 20;

           public static final int c = 30;

           public static final int d = 40;

          }

                                                                                                                              于2010年9月4日
          注:這些文章都是前些時候寫的,之前博客很亂,也都是隨便貼一些自己寫的或轉載的,還有一些則是沒有貼出來過的。現在打算好好整理一下,完整的記錄自己的一些學習歷程,而每次看到過去的時間,則讓我想起以前的日子,因而我對時間一直是很重視的,所以每篇都著名寫的日期,直到最先的文章出現。:)

          posted on 2011-06-23 23:51 DLevin 閱讀(1612) 評論(0)  編輯  收藏 所屬分類: Core Java
          主站蜘蛛池模板: 仁怀市| 四子王旗| 曲周县| 巴彦淖尔市| 开封市| 天峨县| 西充县| 上栗县| 太谷县| 乐平市| 临沂市| 满城县| 富源县| 三江| 宿松县| 光山县| 山阳县| 尼勒克县| 江西省| 古蔺县| 乌拉特中旗| 平顶山市| 依兰县| 肥东县| 平和县| 镇平县| 浠水县| 海兴县| 石景山区| 高唐县| 平果县| 会昌县| 大连市| 沅陵县| 穆棱市| 邵阳市| 女性| 上饶县| 舞钢市| 板桥市| 仪征市|