Question: what is the difference between error and runtime exception?
Answer: Recap : Difference between Error and Exception in Java Occur at runtime. Programs are recoverable from Exceptions by handling them appropriately using try/catch block or throw keyword in java. Programs are irrecoverable from Errors once they occur. Exceptions can be both Checked as well as Unchecked exceptions.