1.

Immutable object are used ______________________(a) To set up as a fixed state(b) To set up variable object(c) To set up an object of abstract class(d) To set up an object of derived classThe question was asked in an online quiz.Origin of the question is Object Use topic in chapter Object of Object Oriented Programming

Answer»

The correct CHOICE is (a) To set up as a fixed state

Easiest explanation - An immutable object can be created for an object which has to be fixed with values. The object DATA will not be changed throughout the program. This can be useful to ELIMINATE the unintentional changes in the data of object.



Discussion

No Comment Found

Related InterviewSolutions