Originally posted by rakhee gupta:
Rakhi,
1. its ca is array of contacts. So it will consume more space.10 contact objects will be created & stored in array ca.
2.ca is single object so it will consume less space. Inside loop you are creating 10 contact objects but only 1 contact object will retain reference. All other contact objects are eligible for garbage collection
HTH
V