Resize of Array Size: When array has null/zero data(exclude add by you) at the right side of array whose take unrequited memory, the method srinkSize() free extra memory. When all space is consumed, and an additional element is to be added, then the underlying fixed size array need to be increase size. Typically resizing is expensive because you have to allocate a bigger array and copy over all of the elements from the array you have overgrow before we can finally append our item. - Study24x7
Social learning Network
24 Mar 2019 12:59 PM study24x7 study24x7

Resize of Array Size: When array has null/zero data(exclude add by you) at the right side of array whose take unrequited memory, the method srinkSize() free extra memory. When all space is consumed, and an additional element is to be added, then the underlying fixed size arr...

See more

study24x7
Write a comment
Related Questions
500+   more Questions to answer
Most Related Articles