There are several questions that are similar to this one here on S.O., but they don't quite answer what the code implementation is. I've looked at
Why isn't there a java.lang.Array class? If a java array is an Object, shouldn't it extend Object?
and
How are arrays implemented in java?
and they don't answer what the concrete implementations are.
I've downloaded the java source from OpenJDK, and I really can't find what I'm looking for. (Perhaps that part of the code is proprietary?)
- How are append/inserts done?
- How is data retrieved? For example, if I invoke
my_arr[500]
what's the algorithm implemented to get the value at index 500? - How are deletes done?
Thanks in advance!