Loading…
Loading…
Java
Exam-prep course for the Oracle Certified Professional Java SE 21 Developer exam (1Z0-830), with notes on the Java 25 successor exam (1Z0-831). Every article ships with a verified practice quiz.
Concurrent collections and threading problems for the OCP 21 exam: ConcurrentHashMap, CopyOnWriteArrayList, skip-list and blocking queue classes, synchronized wrappers, ConcurrentModificationException, then deadlock, starvation, livelock and race conditions with fixes.
kvi5hnuCode Sprout team member8 minThe Lock framework and coordination tools for the OCP 21 exam: ReentrantLock with lock, unlock and tryLock, fairness, hold counts, IllegalMonitorStateException, ReentrantReadWriteLock, CyclicBarrier with barrier actions, plus CountDownLatch and Semaphore.
kvi5hnuCode Sprout team member8 minThread safety for the OCP 21 exam: why ++ loses updates, what volatile does and doesn't do, AtomicInteger and the other atomic classes, synchronized blocks and methods, which object is the lock, reentrancy and the BLOCKED state.
kvi5hnuCode Sprout team member10 minThe Concurrency API for the OCP 21 exam: Executors factory methods, execute versus submit, Callable and Future, get with timeouts, ExecutionException, cancel, invokeAll and invokeAny, shutdown, shutdownNow and close, ScheduledExecutorService and virtual-thread executors.
kvi5hnuCode Sprout team member8 minThreads for the OCP 21 exam: processes, tasks and shared memory, platform versus virtual threads and carrier threads, creating threads with Thread.ofPlatform, Thread.ofVirtual and the constructor, start versus run, join, priorities, daemon threads, the six thread states and interrupting.
kvi5hnuCode Sprout team member9 minModule types for the OCP 21 exam: named, automatic and unnamed modules, how automatic module names are derived from the manifest or JAR file name, what each type exports and reads, bottom-up and top-down migration, splitting a project, and cyclic dependencies.
kvi5hnuCode Sprout team member10 minThe module tools for the OCP 21 exam: built-in java and jdk modules, java --describe-module, --list-modules and --show-module-resolution, jar --describe-module, jdeps with -summary and --jdk-internals, jmod modes, jlink runtime images and jpackage installers, with every option form.
kvi5hnuCode Sprout team member11 minModule services for the OCP 21 exam: the service provider interface, service locator, consumer and service provider, the uses and provides directives, ServiceLoader load, findFirst and stream with Provider, the rules for provider classes, and which directives each part needs.
kvi5hnuCode Sprout team member9 minThe module-info.java directives for the OCP 21 exam: exports and qualified exports, what exporting a package really exposes, requires, requires transitive and implied readability, requires static, duplicate and cyclic requires, and opens, opens to and open modules for reflection.
kvi5hnuCode Sprout team member10 minYour first Java modules for the OCP 21 exam: why the module system exists, its benefits, writing module-info.java, the folder layout, compiling with javac -p and -d, running with java -p and -m, packaging a module JAR, and connecting two modules with exports and requires.
kvi5hnuCode Sprout team member11 minResource bundles for the OCP 21 exam: properties file naming, getBundle with and without a locale, the search order through requested locale, default locale and base bundle, key inheritance, MissingResourceException, MessageFormat placeholders and the Properties class.
kvi5hnuCode Sprout team member7 minLocalization for the OCP 21 exam: Locale format and creation with constants, Locale.of and Locale.Builder, NumberFormat factories for numbers, currency, percent and integers, locale-aware parsing, CompactNumberFormat SHORT and LONG, localized date/time styles, and Locale.Category.
kvi5hnuCode Sprout team member7 minFormatting values for the OCP 21 exam: DecimalFormat patterns with # and 0, rounding and parsing, predefined ISO DateTimeFormatter constants, custom date/time pattern letters, which types support which letters, escaping literal text, parsing dates, and a String.format recap.
kvi5hnuCode Sprout team member7 mintry-with-resources for the OCP 21 exam: AutoCloseable versus Closeable, declaring resources, var and effectively final resources, scope, reverse closing order, the implicit finally, close() exceptions, suppressed exceptions and what happens when a finally block throws.
kvi5hnuCode Sprout team member7 minHandling exceptions for the OCP 21 exam: try and catch syntax, ordering chained catch blocks, unreachable catches, multi-catch rules, finally execution order, return values and finally, exceptions thrown from finally, System.exit, wrapping causes and rethrowing.
kvi5hnuCode Sprout team member7 minThe exception classes the OCP 21 exam expects you to recognize: ArithmeticException, ArrayIndexOutOfBounds, ClassCastException, NullPointerException, IllegalArgument and NumberFormat, IOException and FileNotFound, ParseException, and Errors like StackOverflowError and ExceptionInInitializerError.
kvi5hnuCode Sprout team member7 minException fundamentals for the OCP 21 exam: the Throwable hierarchy, checked versus unchecked, the handle-or-declare rule, throw versus throws, unreachable catch blocks, exception rules for overriding methods and constructors, custom exceptions and printing exceptions.
kvi5hnuCode Sprout team member8 minThe Collectors class for the OCP 21 exam: joining, averaging, summing, counting, toCollection, toList versus Stream.toList, toMap with merge functions and duplicate keys, groupingBy, partitioningBy, mapping, filtering, teeing, plus Spliterator and how a stream sees later changes to its source.
kvi5hnuCode Sprout team member10 minPrimitive streams for the OCP 21 exam: IntStream, LongStream and DoubleStream, range and rangeClosed, sum, average, min and max, OptionalInt, OptionalLong and OptionalDouble, mapping between every stream type and the functional interfaces involved, boxed, and summaryStatistics.
kvi5hnuCode Sprout team member6 minStream intermediate operations for the OCP 21 exam: filter, distinct, limit, skip, map, flatMap, concat, sorted with and without a Comparator, peek, takeWhile and dropWhile, how chained operations run, why sorted hangs on infinite streams, side effects, and checked exceptions in lambdas.
kvi5hnuCode Sprout team member7 min