The following Java code has a run time error:
package A;
public class Student {
Student Osama = new Student();
public static void main(String[] Nidhal) {
Student Wasfi = new Student();
}
}
If you make line 3 or line 5 as a comment, then the code will be run without any error. Why?