Grokking Java Interview Questions
0% completed
Design Patterns in the JDK
| Problem | How the JDK solves it |
|---|---|
| Add buffering to any source of characters | new BufferedReader(reader) |
| Sort the same list in different orders | list.sort(comparator) |
| Build a request from many optional parts | HttpRequest.newBuilder()...build() |
Each row contains a problem that appears in many programs and a solution with a fixed structure. A solution of this kind has a name, and it is called a design pattern. The names let engineers describe a structure in one word.
.....
.....
.....
Like the course? Get enrolled and start learning!
Reading Progress
0%