JavaEE
-
Java基礎(chǔ)視頻 [241/241]
以下是某培訓(xùn)機(jī)構(gòu)給出的Java學(xué)習(xí)曲線
Java學(xué)習(xí)曲線.png
Milestone
2016/03/11 Java編程思想
《Thinking in Java》學(xué)習(xí)記錄
- 對象導(dǎo)論
- 一切都是對象
- 操作符
- 控制執(zhí)行流程
- 初始化與清理
- 訪問控制權(quán)限
- 復(fù)用類
- 多態(tài)
- 接口
- 內(nèi)部類
- 持有對象
- 通過異常處理錯(cuò)誤
- 字符串
- 類型信息
- 泛型
- 數(shù)組
- 容器深入研究
- Java I/O系統(tǒng)
- 枚舉類型
- 注解
- 并發(fā)
- 圖形化用戶界面
Within a class, the order of initialization is determined by the order that the variables are defined within the class. The variable definitions may be scattered throughout and in between method definitions, but the variables are initialized before any methods can be called--even the constructor.
《Thinking in Pattern》學(xué)習(xí)記錄
單例模式
Possibly the simplest design pattern is the singleton, which is a way to provide one and only one object of a particular type. An important aspect of Singleton is that you provide a global access point, so singletons are often a solution for what you would have used a global variable for in C. In addition, a singleton often has the characteristics of a registry or lookup service – it’s a place you go to find references to other objects.
keywords:餓漢式、懶漢式、枚舉式、線程安全代理模式
狀態(tài)模式
迭代器模式
You’ve also already seen another pattern that appears in Design Patterns: the iterator (Java 1.0 and 1.1 capriciously calls it the Enumeration; Java 2 containers use “iterator”). This hides the particular implementation of the container as you’re stepping through and selecting the elements one by one. The iterator allows you to write generic code that performs an operation on all of the elements in a sequence without regard to the way that sequence is built. Thus your generic code can be used with any container that can produce an iterator.策略模式
Template method
工廠模式
keywords:polymorphic factories,abstract factories
補(bǔ)充閱讀
Design Patterns in Java Tutorial
