1.

Can we have two dimensional object array?(a) Yes, always(b) Yes, only if primitive type array(c) No, since two indices are impossible(d) No, neverI had been asked this question in a national level competition.The above asked question is from Object Array in section Object of Object Oriented Programming

Answer»

Correct ANSWER is (a) YES, always

Explanation: A two DIMENSIONAL array can always be created. There is no rule that only PRIMITIVE type objects can have more than one dimension. The object array can also be made 2 dimensional.



Discussion

No Comment Found

Related InterviewSolutions