Loading…
Loading…
Java
The Core Java course: the language, the JVM, objects, inheritance, interfaces, generics, collections, concurrency, annotations and the module system. Targets Java 21+ with notes through Java 27.
Read keyboard input with Scanner (nextLine, next, nextInt, hasNextInt) and avoid the nextInt/nextLine trap, read passwords with Console, and format output precisely with printf, String.format and formatted: conversions, flags, width, precision, argument indexes and locales.
kvi5hnuCode Sprout team member11 minA working tour of the String API (strip, startsWith, replace, indexOf ranges, formatted, lines, isBlank and more), how to read the Javadoc, iterating over code points correctly, building strings fast with StringBuilder, and writing multi-line text with text blocks.
kvi5hnuCode Sprout team member15 minThe essentials of Java's String class: joining strings with + and String.join, repeat and split, indexes and substring, why strings are immutable and shared, why you must compare strings with equals instead of ==, compareTo, and empty vs null strings.
kvi5hnuCode Sprout team member12 minChoose among many values with Java's switch expression: the arrow syntax, selector types, several labels per case, enums without prefixes, exhaustiveness and default, blocks with yield, throwing from a case, and handling null with case null.
kvi5hnuCode Sprout team member7 minA complete guide to the remaining Java operators: ++ and -- in prefix and postfix form, comparisons, && || ! and short-circuit evaluation, the ?: conditional operator, bitwise & | ^ ~ and shifts, plus the full operator precedence table.
kvi5hnuCode Sprout team member11 minWhen Java converts numbers automatically and when you need a cast. Covers widening conversions and precision loss, the rules for mixed-type expressions, casts and how they truncate, out-of-range casts, compound assignment's hidden cast, and assignment as an expression.
kvi5hnuCode Sprout team member10 minHow + - * / % behave in Java, why 15 / 2 is 7, how remainder works with negative numbers, when to use Math.floorMod and floorDiv, the most useful Math methods (pow, sqrt, round, clamp…), overflow-safe exact methods, and StrictMath.
kvi5hnuCode Sprout team member10 minHow to declare and initialize variables in Java, the naming rules, why the compiler rejects uninitialized variables, local type inference with var, constants with final and static final, and a first look at enumerated types.
kvi5hnuCode Sprout team member11 minA complete Java keywords list for Java 21+: all 51 reserved keywords, 17 contextual keywords such as var, record, sealed and yield, and the literals true, false and null, with meanings, the version that introduced each and links to the lessons.
kvi5hnuCode Sprout team member12 minFinish the Java module system: requires transitive and aggregator modules, requires static, qualified exports and opens, ServiceLoader with uses and provides, then jdeps, jlink custom runtime images and JMOD files, with a complete runnable example.
kvi5hnuCode Sprout team member12 minMigrate Java applications to modules step by step: automatic modules from plain JARs, how their names are derived, Automatic-Module-Name, the unnamed module and class path, bottom-up migration, and the --add-exports, --add-opens and @argfile launcher options.
kvi5hnuCode Sprout team member9 minPackage Java modules as modular JARs with jar, --module-version and a main class, then learn why deep reflection fails across modules and fix it with opens, open modules, resource access rules and MethodHandles.Lookup.
kvi5hnuCode Sprout team member8 minDeclare Java module dependencies with requires and publish packages with exports: the "package is not visible" error, the module graph and readability, why requires is not transitive, hiding implementation packages, compiling and running multi-module apps, and split packages.
kvi5hnuCode Sprout team member9 minGet started with the Java Platform Module System (JPMS): why modules exist, strong encapsulation and reliable configuration, how to name modules, write module-info.java, compile a modular Hello World and run it with --module-path and --module.
kvi5hnuCode Sprout team member9 minProcess annotations at the bytecode level: the class file format, javap, CLASS-retention annotations, inserting logging code with ASM's AdviceAdapter, the new Class-File API, and rewriting classes at load time with a Java agent and ClassFileTransformer.
kvi5hnuCode Sprout team member9 minHow Java's char type really works: character literals, escape sequences, the Unicode escape traps, code points vs UTF-16 code units, emojis and surrogate pairs, useful Character methods, plus the boolean type and why Java never treats numbers as true or false.
kvi5hnuCode Sprout team member12 minWrite a Java annotation processor: AbstractProcessor, @SupportedAnnotationTypes, processing rounds, RoundEnvironment, the javax.lang.model element API, AnnotationMirror, Filer and Messager, plus how to register processors with javac, Maven and Gradle and why Lombok is different.
kvi5hnuCode Sprout team member10 minRead Java annotations at runtime with the AnnotatedElement API: getAnnotation, getAnnotationsByType, declared versus inherited annotations, and three hands-on tools built with reflection, an annotation-driven toString, a mini JUnit-style test runner and a record validator.
kvi5hnuCode Sprout team member8 minA practical guide to Java's standard annotations: @Override, @Deprecated with since and forRemoval, @SuppressWarnings, @SafeVarargs, @FunctionalInterface, @Serial and @Generated, plus the meta-annotations @Target, @Retention, @Documented, @Inherited and @Repeatable.
kvi5hnuCode Sprout team member9 minCreate your own Java annotations with @interface: declare elements and default values, restrict where they apply with @Target and ElementType, choose SOURCE, CLASS or RUNTIME retention, and understand the Annotation interface, proxies and dynamically computed defaults.
kvi5hnuCode Sprout team member8 min