The process follows this sequence:
The Bytecode Verifier scans the code to ensure it meets Java’s security standards. what is java runtime
The class loader dynamically loads required classes into the JVM when they are first referenced (not all at startup). It also enforces security by preventing malicious code from substituting its own version of a system class. The process follows this sequence: The Bytecode Verifier