Loading…
Loading…
Topic
Articles and problems tagged Java Tooling.
Module 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.
Variable rules for the OCP Java 21 exam: legal identifiers and reserved words, declaring several variables in one statement, final locals, definite assignment, default values for fields, method parameters, every rule of var, and Java 22's unnamed variables.
The OCP Java 21 basics: what the JDK, javac, java and the JVM do, how a class and a source file are structured, the three comment styles, every legal form of main(), command-line arguments, single-file launching and Java 25's compact source files.
Everything to know before you study for the Oracle Certified Professional Java SE 21 Developer exam (1Z0-830): format, objectives, the unwritten assumptions, question styles, pacing, the new Java 25 exam, and how to use this course and its quizzes.
Letting users choose instead of type: check boxes, radio buttons in button groups, borders and titled panels, generic combo boxes and their models, sliders with ticks and labels, plus spinners and lists.
Running 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.
Master Java's Stream.reduce in its three forms: reduce with an Optional result, with an identity value, and with an accumulator and combiner. Learn why the operation must be associative, what a wrong identity does in parallel, and when to use the three-argument collect instead.
Master Java map views (keySet, values, entrySet) and Map.Entry, then the specialized maps and sets: LinkedHashMap with access order and an LRU cache, SequencedMap, EnumSet and EnumMap, IdentityHashMap, and WeakHashMap with its garbage-collector tricks.
When 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.
A 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.
JShell lets you type Java expressions and see results instantly, with no class, no main method and no compile step. Learn snippets, $ variables, tab completion, methods and records, the most useful slash commands, and how to use JShell to learn faster.
Why professional Java developers use an IDE, how to choose between IntelliJ IDEA, Eclipse, VS Code and NetBeans, and how to create a project, run it, fix compile errors with quick fixes, and step through code with the debugger.
Learn exactly what javac and java do, why the file name must match the public class, how to run single and multi-file programs without compiling first, and how to read and fix the most common command-line errors.
A step-by-step guide to installing Java 25 (LTS): choosing a JDK vendor, installing with an installer or package manager, setting PATH and JAVA_HOME, checking the install, and getting the library source code and API docs.