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.
Previous Question Next Question
Your comments will be displayed only after manual approval.