A beginner-friendly crash course on JDBC fundamentals in Java. Covers connecting to a database using DriverManager with an H2 in-memory database, executing CRUD SQL statements using PreparedStatements (with emphasis on SQL injection prevention via placeholders), iterating ResultSets, and introducing connection pooling via HikariCP DataSource. Also briefly touches on how frameworks like Spring Boot build on top of these JDBC primitives.
•23m watch time
Sort: