Loading…
Loading…
Topic
Articles and problems tagged OCP Java 21.
Ten exam-style questions on integer division and remainder, numeric promotion, widening and narrowing casts, overflow, constant expressions, compound assignment and the value of an assignment, with explanations.
Ten exam-style questions on operator kinds, precedence and associativity, left-to-right operand evaluation, the logical and bitwise complement, negation, and prefix and postfix increment and decrement, with explanations.
A 20-question mixed review of OCP Java 21 Chapter 1: the main method, source files, packages and imports, class path commands, constructors and initialization order, literals, wrappers, text blocks, var, scope and garbage collection.
Ten exam-style questions on the scope of local variables, parameters, loop variables and fields, redeclaring names in nested blocks, garbage-collection eligibility, cycles, System.gc() and finalize(), with explanations.
Ten exam-style questions on legal identifiers, declaring several variables in one statement, definite assignment of local variables, default values for fields, final variables and every rule of var, with explanations.
Ten exam-style questions on Java's primitive types and ranges, numeric literals in different bases, underscore rules, primitives versus references, wrapper classes and their parse and valueOf methods, and text blocks, with explanations.
Ten exam-style questions on creating objects: constructors versus look-alike methods, the default constructor, field defaults, instance initializer blocks, forward references, chained constructors and the order of initialization, with explanations.
Ten exam-style questions on packages, wildcard and single-type imports, java.lang, Date naming conflicts, javac -d, the class path options, JAR files and the order of elements in a source file, with explanations.
Ten exam-style questions on the JDK tools, bytecode, comments, classes and source files, legal main() declarations, command-line arguments and single-file launching, with explanations.
A 31-question diagnostic covering every 1Z0-830 exam area, from operators and switch to modules, concurrency and I/O. Take it before you start studying to find out which chapters need the most attention.