The array list in itself are backed by an array of what type you are allocating.
1) I didn't understand what is backed by an array. Can you please clarify me?
al.add("Lorem ipsum")/alloc(12 x 2 bytes) put the ref to that memory into the array.
2) Why it will allocate 12 x 2 when there are only 11 characters (including space) ?
It is impossible to know how much memory the Strings (or objects) will take when you create the Array.
3) thanks a lot. I never knew this.
4) value of the reference --> is the value of reference means the address of the memory space?
5)
If bake a Tau (2 pie) and give them to you, they are still taking up the same space, but you have to hold them in your hands and my reference to them are no more.
i didnt understand this example. what exactly you meant?
6)
will this return the reference i.e., address of the arraylist.
In that case
will just point to that same address?
Thanks a lot for your valuable time.