The following program has a compiler error, runtime error, a…
The following program has a compiler error, runtime error, and semantic error. State which line(s) correspond to each type of error and why. 1. public class A { 2. private int; 3. private char 1letter = ‘A’; 4. 5. public A(int num) { 6. arr = num; 7. } 8. 9. public int getFirstArrayElement() {10. return arr;11. }12. }