If I have a function that in that function I declare:
Object arr[] = new Object[20];
Where are arr and the whole array stored? heap? stack?
An Array of n Strings is
This Array then has a reference as well that can be held on the stack or (as a field on a class) in the heap