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?

More Nidhal Kamel Taha El-Omari's questions See All
Similar questions and discussions