Java
229 notes
Some notes are currently available only in Chinese. English translations are shown when available.
- 3.15 NIOhistorical
NIO organizes reads and writes around channels and buffers rather than BIO byte and character streams. These notes introduce usage through those components.
- Packet Protocolhistorical
Application protocols must distinguish message boundaries in TCP data. These notes examine packet-protocol design through data examples and sticky-packet behavior.
- Pathhistorical
Path represents a file-system path, with capabilities related to File. These notes use examples to record path creation and manipulation.
- NIO Serverhistorical
Client and server code demonstrate Java NIO programming and how Channel, Buffer, and Selector cooperate on connections and data.
- enumhistorical
Enum defines a set of named values implemented through Enum-related structures after compilation. These notes examine enumeration behavior through code.
- switchhistorical
Switch selects a branch from an expression's value. These notes compare compiled implementations for integers, strings, and enums.
- transienthistorical
Fields marked transient are excluded from default serialization and receive initial values after deserialization. These notes examine that behavior through examples.
- finalhistorical
Final has different meanings on classes, methods, and variables. These notes record inheritance, overriding, and assignment restrictions.
- Cloneable and Object.clonehistorical
Cloneable and Object.clone: It is a marker interface. An object that implements this interface can call Object.clone to copy the current object. What is copied here is the object's fields.
- 5.2 Integerhistorical
Integer is immutable. These notes examine its structure and wrapper-type behavior through implementation details such as its final class.