本月博客排行
-
第1名
龙儿筝 -
第2名
lerf -
第3名
fantaxy025025 - johnsmith9th
- zysnba
- xiangjie88
年度博客排行
-
第1名
青否云后端云 -
第2名
宏天软件 -
第3名
gashero - wy_19921005
- vipbooks
- benladeng5225
- e_e
- wallimn
- javashop
- ranbuijj
- fantaxy025025
- jickcai
- gengyun12
- zw7534313
- qepwqnp
- 解宜然
- ssydxa219
- zysnba
- sichunli_030
- sam123456gz
- arpenker
- tanling8334
- 龙儿筝
- kaizi1992
- gaojingsong
- xpenxpen
- jh108020
- wiseboyloves
- ganxueyun
- xyuma
- xiangjie88
- wangchen.ily
- Jameslyy
- luxurioust
- lemonhandsome
- mengjichen
- jbosscn
- zxq_2017
- lzyfn123
- nychen2000
- forestqqqq
- wjianwei666
- ajinn
- zhanjia
- Xeden
- hanbaohong
- java-007
- 喧嚣求静
- mwhgJava
- kingwell.leng
最新文章列表
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 ...