Infosys Interview Question

What are the type of errors in Java?