Infosys interview question

What are the type of errors in Java?