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.
How Swing programs react to the user: event sources, listener interfaces and event objects, handling button clicks with classes and lambdas, adapter classes and window events, Action objects shared by buttons and menus, and key bindings through input maps and action maps.
kvi5hnuCode Sprout team member12 minPainting Swing components with Graphics2D: the Rectangle2D/Ellipse2D/Line2D shape classes and their Float and Double versions, draw versus fill, colors, alpha and gradients, logical fonts and text metrics for centering strings, and loading, scaling and tiling images.
kvi5hnuCode Sprout team member12 minWhere Java desktop GUIs stand today: AWT peers, painted Swing components, JavaFX and OpenJFX, then a first Swing window: JFrame, the event dispatch thread, close operations, frame properties, the content pane, paintComponent, preferred sizes, pack and headless mode.
kvi5hnuCode Sprout team member13 minHow Java solves key distribution: RSA-OAEP encryption and its size limits, hybrid encryption that wraps an AES key, Diffie-Hellman key agreement with X25519 and HKDF, the KEM API with DHKEM, and post-quantum ML-KEM, with the parameter pitfalls that break interoperability.
kvi5hnuCode Sprout team member11 minEncrypting data with javax.crypto.Cipher: AES, why ECB and unauthenticated modes are dangerous, PKCS #5 padding, AES-GCM with nonces and associated data, ChaCha20-Poly1305, generating and wrapping keys, SecureRandom, and encrypting files with cipher streams.
kvi5hnuCode Sprout team member13 minSolving the authentication problem with X.509 certificates: what a certificate contains, certificate authorities and chains of trust, keytool and PKCS #12 key stores, PKIX path validation in code, and signing and verifying JAR files with jarsigner and the JarSigner API.
kvi5hnuCode Sprout team member12 minPublic key signatures in Java: why a digest alone cannot prove authorship, key pairs and the Signature class, sign/verify/tamper checks, encoding and restoring keys with KeyFactory, and choosing between RSA, RSASSA-PSS, ECDSA, Ed25519, Ed448 and the post-quantum ML-DSA.
kvi5hnuCode Sprout team member10 minFingerprinting data with MessageDigest: what a cryptographic hash guarantees, MD5 and SHA-1 versus SHA-2 and SHA-3, incremental and streamed hashing, HMAC for keyed integrity, and storing passwords safely with salted PBKDF2, constant-time checks, rehashing and the Java 25 KDF API.
kvi5hnuCode Sprout team member12 minHow the Java Authentication and Authorization Service logs users in: LoginContext, login configurations, the REQUIRED/REQUISITE/SUFFICIENT/OPTIONAL flags, writing a LoginModule with two-phase commit, callback handlers, Subjects and principals, Subject.callAs, and life after the Security Manager.
kvi5hnuCode Sprout team member14 minImplementing your own ClassLoader by overriding findClass, an integrity-checking loader that rejects tampered class files, child-first loading, parallel-capable loaders and resources, and what the bytecode verifier checks, shown with deliberately broken class files built with the ClassFile API.
kvi5hnuCode Sprout team member11 minHow the JVM finds and prepares classes: loading, linking and initialization, the bootstrap, platform and application loaders, parent-first delegation, plugin loaders, class loaders as namespaces, the context class loader, and tools for watching it all happen.
kvi5hnuCode Sprout team member11 minEmbedding scripting languages with javax.script (JSR 223): finding engines now that Nashorn is gone, eval, bindings and scopes, redirecting output, Invocable and Java interfaces, Compilable, writing your own engine, and Java snippets via the JShell API.
kvi5hnuCode Sprout team member9 minGenerating Java source at run time, compiling it from strings into byte arrays with SimpleJavaFileObject and ForwardingJavaFileManager, loading it with a class loader or as a hidden class, a formula compiler and a template engine, and generating bytecode directly with the ClassFile API (Java 24).
kvi5hnuCode Sprout team member11 minRunning javac inside a Java program with the javax.tools Compiler API: JavaCompiler.run, compilation tasks, StandardJavaFileManager and locations, diagnostics, options like --release and -Werror, the JavacTask tree API, and in-process JDK tools via ToolProvider.
kvi5hnuCode Sprout team member10 minExternalizing user-visible text with ResourceBundle: naming conventions, candidate and default-locale fallback, parent chains, UTF-8 property files, ListResourceBundle classes, ResourceBundle.Control, caching and modules, with a complete localized example.
kvi5hnuCode Sprout team member10 minSplitting text correctly with BreakIterator and grapheme clusters, handling line endings, choosing and detecting character encodings after UTF-8 became the default (JEP 400), console encodings, stdin and stdout properties, strict decoding, the UTF-8 byte order mark, and the encoding of source files.
kvi5hnuCode Sprout team member12 minBuilding translatable sentences with java.text.MessageFormat: numbered placeholders with number, date and java.time styles, quoting rules, ChoiceFormat for counts and ranges and its limits for real plural rules, ListFormat (Java 22) and the list, compact and dtf pattern types added in Java 23.
kvi5hnuCode Sprout team member10 minPresenting dates in the user's language and calendar, parsing what users type, first day of the week, sorting strings correctly with Collator (strength, decomposition, collation keys, custom rules, locale extensions) and making equal text equal with java.text.Normalizer.
kvi5hnuCode Sprout team member12 minFormatting and parsing numbers for people in any locale: NumberFormat factories, compact numbers like 1.5M, lenient versus strict parsing (Java 23), DecimalFormat patterns and rounding, DecimalFormatSymbols, and the Currency class with locale extensions for accounting style.
kvi5hnuCode Sprout team member12 minWhat a java.util.Locale is and how to get one right: BCP 47 language tags with scripts, regions and Unicode extensions, Locale.of and Locale.Builder, the default locale and its DISPLAY and FORMAT categories, display names, the Turkish i, and matching user preferences with LanguageRange.
kvi5hnuCode Sprout team member12 min