最新文章列表

Item 22: Favor static member classes over nonstatic

1.  A nested class should exist only to serve its enclosing class. If a nested class would be useful in some other context, then it should be a top-level class.   2.  There are four kinds of nested ...
leonzhx 评论(0) 有883人浏览 2014-03-17 20:44

java Nested Classes

复习下java基础时,发现关于内部类的资料都不是很全,特地找了一个,和大家分享。 Inner Classes Inner classes let you define one class within another, they provide a type of scoping for your classes since you can make one class a member o ...
xiao_2008 评论(0) 有929人浏览 2013-03-28 15:11

JLS --(Java 类的分类)

      Java中的类(class)定义了新的引用类型,以及他们的实现。Java中的类大体上可以分为顶层类(top level class)和嵌套类(nested class)。所谓嵌套类,指在另一个类或接口体内声明的任何类,而顶层类,指所有的非嵌套类。 嵌套类包括以下三种类: 1)成员类(member classes); 2)本地类(local classe ...
crazoy 评论(0) 有607人浏览 2012-08-18 19:16

最近博客热门TAG

Java(141741) C(73643) C++(68602) SQL(64557) C#(59604) XML(59131) HTML(59042) JavaScript(54916) .net(54782) Web(54511) 工作(54116) Linux(50906) Oracle(49861) 应用服务器(43285) Spring(40811) 编程(39452) Windows(39380) JSP(37540) MySQL(37266) 数据结构(36420)

博客人气排行榜

    博客电子书下载排行

      >>浏览更多下载

      相关资讯

      相关讨论

      Global site tag (gtag.js) - Google Analytics