Java
229 notes
Some notes are currently available only in Chinese. English translations are shown when available.
- OOPhistorical
Inheritance affects constructors, fields, and methods in Java. These notes examine those relationships through parent-child class examples.
- 9. Reflectionhistorical
Reflection retrieves information such as class fields and methods at runtime. These notes use examples to examine dynamic inspection and object operations.
- 10. Sockethistorical
Socket programming involves connections and I/O. These notes compare ServerSocket, Socket, and NIO channels to examine server-client relationships.
- Servlethistorical
A Servlet calls init after creation and service for requests, dispatching to methods such as doGet and doPost. These notes organize the lifecycle.
- 11.2 Tuninghistorical
Tomcat tuning can start with JVM options in startup scripts and continue with connector settings. These notes record configuration methods and inspection commands.
- 11.3 Usagehistorical
Examples such as HelloServlet demonstrate Servlet usage and how requests enter the application handler.
- 11.4 Connectorhistorical
Tomcat Connector accepts network requests and passes them to the adapter and container. These notes examine its structure through Boss/Worker responsibilities.
- Tomcat Startup Flowhistorical
Tomcat's startup.bat calls catalina.bat. These notes follow the scripts into the main class and trace container startup.
- Tomcat Request Processing: Source Viewhistorical
Tomcat startup includes init and start stages. These notes trace request-handling source code through the distinction between binding a port and accepting connections.
- Building Tomcat from Sourcehistorical
These notes record Maven configuration for Tomcat source and startup and debugging through the Bootstrap class.