array initilization and memory usage
- From: jon23d@xxxxxxxxx
- Date: 25 Jun 2006 22:12:21 -0700
I'm a little new here, so please bear with me if this sounds like a
goofy
question!...
let's say that I have an class with 15 or so members, each taking up a
fair
amount of space - we'll call this class bars
If I create an array of 400 empty bars objects, but only instantiate
the
first five or so then am I still setting aside the memory for the other
395?
I hope that made sense!
Thanks
.
- Follow-Ups:
- Re: array initilization and memory usage
- From: Xavier Tarrago
- Re: array initilization and memory usage
- Prev by Date: Re: classfile has wrong name WRT package?
- Next by Date: Re: NoClassDefFoundError: Files\groovy-1/0-jsr-05
- Previous by thread: building a meta search engine
- Next by thread: Re: array initilization and memory usage
- Index(es):