Loading…
Loading…
Topic
Articles and problems tagged JVM.
Threads 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.
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.
Implementing your own ClassLoader by overriding findClass, an integrity-checking loader that rejects tampered class files, child-first loading, parallel-capable loaders and resources, and what the bytecode verifier checks, shown with deliberately broken class files built with the ClassFile API.
Process annotations at the bytecode level: the class file format, javap, CLASS-retention annotations, inserting logging code with ASM's AdviceAdapter, the new Class-File API, and rewriting classes at load time with a Java agent and ClassFileTransformer.
Java is a language, a huge standard library and a virtual machine that work together. Learn what JDK, JRE, JVM and bytecode mean, how a Java program actually runs, and which Java editions and versions exist today.