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.
Write professional Java API documentation with javadoc: /** */ comments for classes, methods, fields and packages, @param, @return, @throws, @see and {@link}, {@code} and HTML, code snippets (Java 18), Markdown doc comments (Java 23), and generating HTML with the javadoc tool.
kvi5hnuCode Sprout team member13 minPackage Java applications and libraries as JAR files: the jar tool and its options, the META-INF/MANIFEST.MF manifest, executable JARs with Main-Class and java -jar, multi-release JARs, modern --long options, JDK_JAVA_OPTIONS, fat JARs and jpackage installers.
kvi5hnuCode Sprout team member12 minUnderstand Java's default package access and why forgetting private breaks encapsulation, then master the class path: how the JVM and javac locate classes in directories and JAR files, -cp and --class-path, wildcards, the CLASSPATH variable, and fixing ClassNotFoundException.
kvi5hnuCode Sprout team member12 minHow Java packages organize classes and prevent name clashes: reverse-domain package names, fully qualified names, single-type and on-demand imports, resolving conflicts like java.util.Date vs java.sql.Date, static imports, module imports in Java 25, and placing classes into packages and directories.
kvi5hnuCode Sprout team member11 minJava records explained: declaring immutable data carriers in one line, components and accessors like x(), generated toString, equals and hashCode, adding methods and static members, canonical, compact and custom constructors for validation and normalization, and when to choose a record over a class.
kvi5hnuCode Sprout team member9 minEvery way to initialize Java objects: overloading and signatures, default field values, no-argument constructors, field initializers, parameter naming with this, calling this(...), initialization blocks, static initializers, construction order and cleanup without destructors.
kvi5hnuCode Sprout team member13 minJava always passes arguments by value, including object references. See why a method can't change a primitive argument, why it can change an object's state, why a swap method can't work, how this differs from C++ references, and how to return several results instead.
kvi5hnuCode Sprout team member8 minWhat static means in Java: static fields shared by all objects, static final constants like Math.PI and System.out, static methods without this, when to use them, static factory methods (and why they beat constructors), and why main is static, plus Java 25 instance main methods.
kvi5hnuCode Sprout team member11 minWhy Java classes hide their fields behind methods: the benefits of accessors and mutators, the danger of returning mutable objects (and defensive copies), class-based access to private data, private helper methods, and final instance fields, including final references to mutable objects.
kvi5hnuCode Sprout team member10 minWrite your first real Java class: an Employee with private fields, a constructor and methods. Covers multiple classes and source files, how javac finds dependencies, constructor rules, var for local variables, handling null with Objects.requireNonNull, and implicit vs. explicit parameters and this.
kvi5hnuCode Sprout team member12 minLearn to work with objects from the Java library: constructors and new, the difference between objects and object variables, references and null, why Java has LocalDate instead of a date type, factory methods, accessor vs. mutator methods, and a complete calendar program.
kvi5hnuCode Sprout team member11 minThe ideas behind object-oriented programming in Java: classes and objects, encapsulation, an object's behavior, state and identity, finding classes from nouns and verbs, and the uses-a, has-a and is-a relationships between classes with UML notation.
kvi5hnuCode Sprout team member11 minSort and search arrays with java.util.Arrays, draw raffle winners without repeats, generate random numbers the modern way, build tables with two-dimensional arrays, and understand Java's arrays of arrays: deepToString, swapping rows, and ragged (triangular) arrays.
kvi5hnuCode Sprout team member10 minOne-dimensional Java arrays: declaring and creating arrays, initializers and anonymous arrays, default values, indexes and ArrayIndexOutOfBoundsException, the enhanced for-each loop, printing with Arrays.toString, reference vs. value copying with Arrays.copyOf, and command-line arguments.
kvi5hnuCode Sprout team member10 minWhen long and double aren't enough: BigInteger for huge whole numbers and BigDecimal for exact decimal arithmetic like money. Covers valueOf vs constructors, add/multiply/divide/mod/pow, why new BigDecimal(0.1) is wrong, scale and rounding modes, compareTo vs equals, and performance tips.
kvi5hnuCode Sprout team member8 minExit loops early with break, skip to the next iteration with continue, and escape nested loops with labeled break and labeled continue. Covers why Java has no goto, labeled blocks, how continue behaves in for loops, and cleaner alternatives such as extracting a method.
kvi5hnuCode Sprout team member8 minJava's switch statement explained: arrow-form switch statements for menus, the classic colon form with break and fall-through, -Xlint:fallthrough, the four forms of switch (statement or expression, arrow or colon), why yield exists, and which form to choose.
kvi5hnuCode Sprout team member7 minRepeat work in Java with while, do-while and for loops: how each one tests its condition, a savings-target calculator, counting team combinations, counting down, the scope of loop variables, floating-point loop traps, infinite loops, and how to choose the right loop.
kvi5hnuCode Sprout team member9 minHow Java blocks define variable scope (and why you can't redeclare a variable in a nested block), and how to make decisions with if, if/else and if/else if chains, including the dangling else, braces style, and common pitfalls like a stray semicolon.
kvi5hnuCode Sprout team member9 minRead text files with Scanner and Path.of, write them with PrintWriter, and use the modern Files.readString, readAllLines and writeString. Covers UTF-8 and character encodings, relative paths and the working directory, throws IOException, try-with-resources, and shell redirection.
kvi5hnuCode Sprout team member10 min