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.
Master Java wildcards: why List<Manager> is not a List<Employee>, how arrays differ, raw-type pitfalls, ? extends for reading, ? super for writing, the PECS rule, Comparable<? super T>, unbounded wildcards and wildcard capture with helper methods.
kvi5hnuCode Sprout team member13 minUnderstand how Java generics really work: type erasure to raw types and first bounds, the casts the compiler inserts, how generic methods are erased, bridge methods for overriding and covariant returns, calling legacy raw-type code, and generic record patterns.
kvi5hnuCode Sprout team member11 minLearn how to restrict Java type variables with bounds: why <T extends Comparable<T>> lets you call compareTo, why extends is used for interfaces, multiple bounds with &, the class-first rule, bounded generic classes, and the LocalDate surprise.
kvi5hnuCode Sprout team member7 minLearn why Java generics exist and how to use them: type parameters versus Object and casts, defining a generic class like Pair<T>, naming conventions, the diamond operator, generic methods, type inference and how to decode inference errors.
kvi5hnuCode Sprout team member12 minPractical Java debugging tips: useful toString methods, logging proxies, stack traces on demand, capturing stderr, uncaught exception handlers, javac -Xlint, -verbose and -Xlog, and JVM tools like jcmd, jconsole, VisualVM, Java Flight Recorder and Mission Control.
kvi5hnuCode Sprout team member11 minGo deeper into java.util.logging: ConsoleHandler and FileHandler, log file patterns and rotation, handler levels, filters, custom formatters and handlers, the SimpleFormatter format string, LogRecord details, and a practical logging recipe for real applications.
kvi5hnuCode Sprout team member11 minGet started with logging in Java: frontends versus backends, the platform System.Logger API, log levels, lazy messages with suppliers, logging exceptions, MessageFormat placeholders, and configuring java.util.logging with logging.properties and logger hierarchies.
kvi5hnuCode Sprout team member12 minLearn Java assertions: the two forms of the assert statement, enabling them with -ea and -da per class or package, why conditions must have no side effects, when to assert versus throw, preconditions, documenting assumptions, and the ClassLoader assertion API.
kvi5hnuCode Sprout team member11 minPractical Java exception handling best practices: don't use exceptions for control flow, keep try blocks coarse, use precise types, never swallow exceptions, throw early and catch late, validate with Objects methods, and keep stack traces away from users.
kvi5hnuCode Sprout team member11 minLearn how Java's finally clause runs on every path, why return in finally is a trap, how try-with-resources closes AutoCloseable resources in reverse order with suppressed exceptions, and how to read and walk stack traces with StackWalker.
kvi5hnuCode Sprout team member12 minMaster catching exceptions in Java: how try/catch changes control flow, when to catch versus propagate, ordering multiple catch clauses, multi-catch with |, unnamed catch variables, and rethrowing, wrapping and chaining exceptions without losing the cause.
kvi5hnuCode Sprout team member11 minLearn how to throw exceptions in Java with the throw statement, pick the right standard exception, write your own checked or unchecked exception classes with the four conventional constructors, and attach extra data and causes.
kvi5hnuCode Sprout team member10 minStart Java exception handling the right way: why exceptions beat error codes, the Throwable hierarchy with Error, Exception and RuntimeException, checked vs unchecked exceptions, declaring exceptions with throws, and the rules for overriding methods that throw.
kvi5hnuCode Sprout team member14 minLearn Java dynamic proxies: when you need classes created at runtime, InvocationHandler and Proxy.newProxyInstance, tracing calls with a proxy, which Object methods are forwarded, invokeDefault for default methods (Java 16), proxy class properties, and real-world uses in frameworks.
kvi5hnuCode Sprout team member11 minBuild pluggable Java applications with java.util.ServiceLoader: define a service interface, write providers, register them in META-INF/services or with provides/uses in module-info, iterate lazily, select providers with stream() and Provider.type(), and use findFirst.
kvi5hnuCode Sprout team member8 minLearn the remaining kinds of Java nested classes: local classes inside methods, capturing effectively final variables, anonymous inner classes and their syntax, var with anonymous types, double brace initialization, the getEnclosingClass trick, and static nested classes and records.
kvi5hnuCode Sprout team member12 minUnderstand Java inner classes: why they exist, how an inner object accesses the private fields of its outer object, the hidden this$0 reference, OuterClass.this and outer.new Inner() syntax, static members in inner classes (Java 16), and how the compiler translates them.
kvi5hnuCode Sprout team member10 minGo deeper with Java lambdas: closures and effectively final variables, this inside a lambda, writing methods that accept lambdas, the complete java.util.function tables, combining predicates and functions, String.transform, and building comparators with comparing, thenComparing and nullsFirst.
kvi5hnuCode Sprout team member12 minMaster Java method references (::): object::instanceMethod, Class::instanceMethod, Class::staticMethod, this:: and super::, how overloads are chosen, the null difference from lambdas, and constructor references such as Person::new and Person[]::new for streams and generic arrays.
kvi5hnuCode Sprout team member10 minLearn Java lambda expressions from scratch: why lambdas exist, every syntax form (inferred types, block bodies, no parameters, var, unnamed _), functional interfaces and @FunctionalInterface, java.util.function types like Predicate, Supplier and BiFunction, and primitive specializations.
kvi5hnuCode Sprout team member13 min