Java / Kotlin / Flutter(Dart) Programming Notes
- Java Design Patterns
It is generally believed that there are 23 design patterns in Java. Of course, it is not necessary to know all of them for the time being, but several common design patterns should be mastered.
Generally speaking, design patterns can be divided into three categories:
- Creational patterns, five types in total: Factory Method Pattern, Abstract Factory Pattern, Singleton Pattern , builder pattern, prototype pattern.
- Structural mode, a total of seven types: adapter mode, decorator mode, proxy mode, Appearance Mode, Bridge Mode, Composite Mode, Flyweight Mode.
- Behavioral patterns, a total of eleven types: strategy pattern, template method pattern, observer pattern, iterative sub-pattern, chain of responsibility pattern, command pattern, memo pattern, State pattern, visitor pattern, mediator pattern, interpreter pattern.
- The difference between Stack and Heap
- The difference between List-Set-Map and other collections
- How many bytes are occupied by byte-boolean-short-char-int-float-long-double in Java