What are the two main types of errors in Java programming?
Syntax errors and logic errors
Compilation errors and runtime errors
Input errors and output errors
Execution errors and debugging errors