1. List three types of errors that you can encounter in a Java program, and describe what you will do to minimize the errors.
2. 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?© BrainMass Inc. brainmass.com March 4, 2021, 7:46 pm ad1c9bdddf
(i) A common error is that the public class name doesn't match the name of the java file. If this is the case, the program will not compile and run.
(ii) A non-static variable is called from a static ...
This job names three types of errors that you can encounter in a Java program.