Java Vector: clear vs removeAllElements method
<p>I'm new to Java.</p>

<p>Which is more efficient for Vectors -- clear() or removeAllElements().  I would guess removeAllElements since it leaves the capacity unchanged (doesn't release memory) whereas clear() releases memory.  Depending on the application, either may be desirable.</p>

<p>I would appreciate some input.  Thanks. </p>
