上善若水
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 阅读(1590) 评论(0)  编辑  收藏 所属分类: Core Java

只有注册用户登录后才能发表评论。


网站导航: