1.

Which statement is true for the Array class?(a) Arrays can have variable length(b) The length array can be changed(c) Each class has an associated Array class(d) Arrays can contain different type of valuesThe question was posed to me in an online interview.I would like to ask this question from Inbuilt Classes topic in division Inbuilt Classes of Object Oriented Programming

Answer»

Right option is (c) Each CLASS has an associated ARRAY class

The best I can EXPLAIN: The Array class is associated with all the other classes. This GIVES us the flexibility to declare an array of any type. The INDEX goes from 0 to n, where n is some fixed size for array.



Discussion

No Comment Found

Related InterviewSolutions