Java
229 notes
Some notes are currently available only in Chinese. English translations are shown when available.
- LinkedHashSethistorical
LinkedHashSet organizes data with LinkedHashMap and uses a placeholder value. These notes examine how that relationship supports set operations.
- StringBufferhistorical
StringBuffer provides thread-safe mutable-string operations through synchronization. These notes compare it with StringBuilder.
- Converting Between List and Arrayhistorical
Arrays and lists often need conversion. These notes use code examples to record conversions in both directions and their behavioral differences.
- Java Map Implementations Comparedhistorical
HashMap implementations differ between JDK 1.7 and 1.8. These notes compare collision handling, tree conversion, and concurrent resizing.
- Collections.synchronizedSethistorical
SynchronizedSet wraps set operations with synchronized protection. These notes connect its wrapper with the implementations of synchronized collections.
- StringBuilderhistorical
StringBuilder stores characters in a resizable array and supports mutation without thread-safety guarantees. These notes trace append and resize operations.
- List Comparisonhistorical
ArrayList and LinkedList use different underlying structures. A comparison table examines access, insertion, deletion, and related operations.
- Collections.synchronizedMaphistorical
SynchronizedMap wraps map operations in synchronization blocks. These notes connect it with SynchronizedList to examine synchronized wrappers.
- TreeSethistorical
TreeSet uses TreeMap to store distinct elements. These notes examine insertion, lookup, and iteration through the underlying method calls.
- String Comparisonhistorical
String is immutable, while StringBuilder and StringBuffer are mutable. A comparison table examines thread safety and usage scenarios.