1.

When are the array of objects without any initialization useful?(a) When object data is not required just after the declaration(b) When initialization of object data is to be made by the compiler(c) When object data doesn’t matter in the program(d) When the object should contain garbage dataThe question was asked in an international level competition.This intriguing question originated from Object Array in division Object of Object Oriented Programming

Answer»

The correct option is (a) When object data is not REQUIRED just after the declaration

The explanation: Sometimes the object data is not mandatory to be used just after the declaration or may be the program REQUIRES the data to be updated ACCORDING to what USER inputs. Hence only declaration us also useful.



Discussion

No Comment Found

Related InterviewSolutions