Predict the output of the numbered lines in the main method….

Predict the output of the numbered lines in the main method. Write the proper output for each line.If a line would cause an error, assume that the program would continue and write”Error”.Example answer:1. Error2. Student/Normal Person/Computer Science… public class Person { public void printType() { System.out.println(“Normal Person”); }}public class Student extends Person { public void printType() { System.out.println(“Student”); } public void printMajor() { System.out.println(“Computer Science”); }}public class Main { public static void main(String[] args) { Person a = new Person(); Person b = new Student(); Object c = new Student(); c.printType() //[output1] b.printType(); //[output2] b.printMajor(); //[output3] a.printType(); //[output4] }}