In the case of class objects, the actual objects are stored in a heap segment.Ĭreating, initializing and accessing an Array One-Dimensional Arrays: ![]() In the case of primitive data types, the actual values are stored in contiguous memory locations. However, an array reference can be made to point to another array.Īn array can contain primitives (int, char, etc.) and object (or non-primitive) references of a class depending on the definition of the array.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |