本月博客排行
年度博客排行
-
第1名
青否云后端云 -
第2名
zw7534313 -
第3名
大家都说我很棒 - wy_19921005
- liyihz2008
- gengyun12
- e_e
- luxurioust
- zysnba
- robotmen
- gaozzsoft
- jywhltj
- hbxflihua
- gashero
- qepwqnp
- 解宜然
- vipbooks
- sichunli_030
- fantaxy025025
- wallimn
- cuityang
- ssydxa219
- gdpglc
- javashop
- ranbuijj
- jickcai
- johnsmith9th
- hanbaohong
- appalese
- gaojingsong
- weiyides
- java-007
- zhangyi0618
- AVI
- laiyangdeli
- 淡看人生
- liunancun
- xpenxpen
- tanling8334
- lemonhandsome
- nychen2000
- 龙哥IT
- ouanui
- xyuma
- conkeyn
- jveqi
- panshunchang
- wjianwei666
- MagicLee
- benladeng5225
最新文章列表
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 ...
JLS --(Java 类的分类)
Java中的类(class)定义了新的引用类型,以及他们的实现。Java中的类大体上可以分为顶层类(top level class)和嵌套类(nested class)。所谓嵌套类,指在另一个类或接口体内声明的任何类,而顶层类,指所有的非嵌套类。
嵌套类包括以下三种类:
1)成员类(member classes);
2)本地类(local classe ...