What is the role of the bytecode verifier in the JVM?
The bytecode verifier ensures that the bytecode is structurally valid and does not attempt to perform illegal operations like accessing private fields or violating type safety.
Great! You've captured the role of the bytecode verifier accurately.
Can you describe what would happen if the bytecode verifier detects an invalid instruction?