Eranga absolutely correct!
actually on compilation, the code will be converted to this,
public class ObjectTest {
ObjectTest myObject;
ObjectTest ()
{
myObject = new ObjectTest();
}
public static void main(String[] args) {
ObjectTest myObject = new ObjectTest();
System.out.println(myObject);
}
}
Hence the answer, STACK OVERFLOW
Post some more quiz
