A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Joined: Aug 21, 2004
Dec 12, 2005 05:59:00
1. In a collection class, usually we dont specify the no of objects intially. How is it getting allocated dynamically?
2. Is there anyway that one can alter an array's size without altering it declaration?
Joined: Sep 16, 2005
Dec 12, 2005 06:53:00
1. That depends on the implementation. Compare
a List using an array, and
which implements a List using link
2. I think what you are really asking is if arrays can dynamically change
their length: no, they cannot.
There is no emoticon for what I am feeling!
author and iconoclast
Joined: Jul 08, 2003
Dec 12, 2005 07:00:00
This is a nice beginner-level question, so let's move it to Java in General (Beginner).
[Jess in Action]
I agree. Here's the link:
subject: Regarding collection.
Tech Word Game
WA #1.....word association
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2014