Loading…
Loading…
Java
The advanced-libraries companion to Core Java I: streams, files, regular expressions, XML, networking, databases, date & time, internationalisation, security, desktop UIs and the Foreign Function and Memory API. Targets Java 25.
Turning java.time values into text and back: the predefined ISO formatters, localized styles and skeleton patterns, custom pattern letters and their traps (Y vs y, m vs M), resolver styles, DateTimeFormatterBuilder, and converting to and from Date, Calendar, TimeZone and java.sql types.
kvi5hnuCode Sprout team member14 minTimes of day and time zones in java.time: LocalTime and LocalDateTime, ZoneId and the IANA database, converting between zones and instants, gaps and overlaps at daylight saving changes, ZoneRules, Duration versus Period across transitions, and when to use OffsetDateTime.
kvi5hnuCode Sprout team member10 minWork with dates without times or zones: creating and validating LocalDate values, month-end clamping in arithmetic, Period versus days, ages and differences, DayOfWeek and Month, TemporalAdjusters and custom adjusters, date streams, YearMonth, MonthDay, ISO weeks and other calendars.
kvi5hnuCode Sprout team member10 minHow java.time models machine time: the Java time scale and leap seconds, Instant as a point counted from the epoch, Duration as exact seconds and nanoseconds, arithmetic, parsing and parts, Clock and InstantSource for testable code, and measuring elapsed time correctly.
kvi5hnuCode Sprout team member9 minHow server applications manage database connections: why pools exist and how they work, HikariCP settings and pool sizing, pools with virtual threads, DataSources from JNDI, @Resource and Spring Boot, distributed transactions, and the persistence layers built on JDBC: JdbcClient, jOOQ and JPA.
kvi5hnuCode Sprout team member11 minGroup statements into transactions with setAutoCommit, commit and rollback, choose isolation levels and understand dirty, non-repeatable and phantom reads, retry deadlocks, use save points, speed up bulk changes with batch updates, and map advanced SQL types like ARRAY, UUID, JSON and SQLXML.
kvi5hnuCode Sprout team member12 minDiscover a database's structure and capabilities at run time: DatabaseMetaData for products, features, tables, columns, keys and indexes, ResultSetMetaData for the columns of any query, ParameterMetaData for statement parameters, and the JDBCType enum, with a generic table printer.
kvi5hnuCode Sprout team member8 minWork with data after closing the connection: RowSetProvider and RowSetFactory, populating a CachedRowSet, editing offline and writing back with acceptChanges, conflict handling with SyncResolver, paging, JdbcRowSet, WebRowSet XML, filtering, joining and listeners.
kvi5hnuCode Sprout team member9 minRequest scrollable and updatable result sets with type and concurrency settings, move the cursor with previous, absolute, relative, first and last, edit, insert and delete rows through the result set, check what the driver really granted, and know when SQL or pagination queries are better.
kvi5hnuCode Sprout team member9 minStore and read large binary and text data with Blob, Clob and streams, use JDBC escape syntax for dates, functions, outer joins, LIKE and stored procedure calls with CallableStatement, process multiple results with getMoreResults, and retrieve auto-generated keys.
kvi5hnuCode Sprout team member10 minUse PreparedStatement for every SQL statement with variable values: ? placeholders and setter methods, reuse and statement caching, dates, NULLs, IN lists and LIKE patterns, how SQL injection works and why parameters stop it, whitelisting identifiers, and the enquote helpers.
kvi5hnuCode Sprout team member12 minRun SQL with Statement: executeUpdate, executeQuery and execute, reading ResultSet rows with typed getters, column labels, NULL handling and java.time, closing resources, query timeouts and fetch sizes, and analyzing SQLException chains, SQLStates, subclasses and warnings.
kvi5hnuCode Sprout team member12 minGet a database to practice with, write JDBC URLs for PostgreSQL, MySQL, Oracle, SQL Server, H2 and SQLite, put the driver JAR on the class path, connect with DriverManager or a DataSource, keep credentials out of code, trace JDBC calls and handle login failures.
kvi5hnuCode Sprout team member10 minHow JDBC is organized (one API, pluggable vendor drivers, DriverManager and DataSource), the four driver types, where JDBC sits in modern applications, and a refresher of SQL: tables, keys, SELECT, WHERE, LIKE, joins, NULL, grouping, INSERT, UPDATE and DELETE.
kvi5hnuCode Sprout team member12 minHow email delivery works from Java: the SMTP conversation (EHLO, MAIL FROM, RCPT TO, DATA), envelopes vs. headers, MIME messages with UTF-8 subjects and Base64 attachments, ports, STARTTLS and authentication, and sending with Jakarta Mail and Angus Mail.
kvi5hnuCode Sprout team member9 minServe HTTP with the JDK alone: the jwebserver tool, HttpServer contexts and HttpExchange handlers, sending responses correctly, executors and virtual threads, filters, HttpHandlers and SimpleFileServer (Java 18), basic authentication and HttpsServer.
kvi5hnuCode Sprout team member9 minUse HttpClient asynchronously: sendAsync and CompletableFuture pipelines, running many requests in parallel, combining and timing out futures, executors, HTTP/2 and HTTP/3 (Java 26) version negotiation, and the WebSocket API with listeners, fragments, pings and closing.
kvi5hnuCode Sprout team member11 minUse java.net.http.HttpClient for synchronous HTTP: building and closing clients, HttpRequest builders with methods, headers and timeouts, body publishers for strings, files, forms and multipart, body handlers for strings, lines, streams, files and size limits, headers, redirects and errors.
kvi5hnuCode Sprout team member8 minSend data to web servers with HttpURLConnection: query strings and URLEncoder/URLDecoder, POST with setDoOutput, form and JSON content types, Content-Length and streaming modes, error streams, automatic and manual redirects, cookies with CookieManager, and building multipart/form-data uploads.
kvi5hnuCode Sprout team member9 minWeb addresses and resource fetching: URI syntax, resolving, relativizing, normalizing and encoding, why URL constructors are deprecated, openStream, URLConnection and HttpURLConnection, request and response headers, conditional requests, Basic authentication, file: and jar: URLs.
kvi5hnuCode Sprout team member9 min