Suppose there is a class MyObject which has a MyClass() constructor and is properly implemented.
When we call that line of code will it create instances of the MyClass object or will something else happen?
Edit: apparently this question was not very well-received. I'm sorry if it's vague or something. It was simply a homework question that asks for T/F.
I meant to ask: if we have MyClass[][] x = new MyClass[n][n]; // where n is a number Will it create n*n instances of MyClass objects or merely n*n null references?
It turns out that
MyClass[][] x = new MyClass[n][n]; // where n is a number
x[0][0] = new MyClass();
is different from
MyClass x = new MyClass();