本月博客排行
-
第1名
Xeden -
第2名
fantaxy025025 -
第3名
bosschen - paulwong
- johnsmith9th
- zysnba
年度博客排行
-
第1名
青否云后端云 -
第2名
宏天软件 -
第3名
gashero - gengyun12
- wy_19921005
- vipbooks
- e_e
- benladeng5225
- wallimn
- ranbuijj
- javashop
- jickcai
- fantaxy025025
- zw7534313
- qepwqnp
- robotmen
- 解宜然
- ssydxa219
- sam123456gz
- zysnba
- sichunli_030
- tanling8334
- arpenker
- gaojingsong
- xpenxpen
- kaizi1992
- wiseboyloves
- jh108020
- xyuma
- ganxueyun
- wangchen.ily
- xiangjie88
- Jameslyy
- luxurioust
- mengjichen
- lemonhandsome
- jbosscn
- nychen2000
- zxq_2017
- lzyfn123
- wjianwei666
- forestqqqq
- ajinn
- siemens800
- hanbaohong
- 狂盗一枝梅
- java-007
- zhanjia
- 喧嚣求静
- Xeden
最新文章列表
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 ...
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 ...
JLS --(Java 类的分类)
Java中的类(class)定义了新的引用类型,以及他们的实现。Java中的类大体上可以分为顶层类(top level class)和嵌套类(nested class)。所谓嵌套类,指在另一个类或接口体内声明的任何类,而顶层类,指所有的非嵌套类。
嵌套类包括以下三种类:
1)成员类(member classes);
2)本地类(local classe ...