How does Java allocate storage for array of interfaces? -


since interfaces specify methods , not instance variables, how storage allotted like:

comparable[] aux = new comparable[20]; 

how per location storage (i.e. not counting array overhead) allocated?

the array allocating enough contiguous memory pointers objects, doesn't need allocate memory actual objects itself.

we can forget, java still uses "pointers" (aka references), doesn't provide same level of access pointers other languages do


Comments