Home » JAVA Programming » Arrays » Question
  1. Where is array stored in memory?
    1. first generation memory
    2. stack space
    3. heap space and stack space
    4. heap space
    5. None of these
Correct Option: D

Array is stored in heap space.Whenever an object is created, it’s always stored in the Heap space and stack memory contains the reference to it.



Your comments will be displayed only after manual approval.