Discussion:
Q1. List three types of errors that you can encounter in a Java program, and describe what you will do to minimize the errors.
Q2. Create an array with 5 elements of type int in a for loop go from 0 to 5 (which means 6 elements) and try to print all elements; the program will compile, but what happens when you run it? What error message do you get?