What is a `VerifyError` in Java, and when is it thrown?
A `VerifyError` is thrown when a Java class file is found to be corrupted or contains invalid data during runtime execution.
Thatâ€™s incorrect. A `VerifyError` is thrown during bytecode verification, not due to corruption or invalid data at runtime.
Can you explain the role of bytecode verification in preventing runtime errors?