最新文章列表

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) 有844人浏览 2014-03-17 20:44

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(141745) C(73651) C++(68608) SQL(64571) C#(59609) XML(59133) HTML(59043) JavaScript(54919) .net(54785) Web(54514) 工作(54118) Linux(50905) Oracle(49875) 应用服务器(43289) Spring(40812) 编程(39454) Windows(39381) JSP(37542) MySQL(37267) 数据结构(36424)

博客人气排行榜

    博客电子书下载排行

      >>浏览更多下载

      相关资讯

      相关讨论

      Global site tag (gtag.js) - Google Analytics