Array

  • Single-dimensional arrays

    A contiguous space is allocated in heap and a reference is returned (similar to new object). array object in java

  • Two-dimensional arrays

    • They don't really exist.
    • 2D arrays are just array of arrays.
    • Multi-dimensional arrays go by the same rule.