Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 08-02-2007, 03:52 PM
Member
 
Join Date: Jul 2007
Posts: 41
Rep Power: 0
paty is on a distinguished road
Default array vs Vector
I'm a little bit new in java, and I have a doubt about array and vector
I know that a vector is an array
so why does vector exist? what are the differences between them?
Bookmark Post in Technorati
Reply With Quote
  #2 (permalink)  
Old 08-02-2007, 08:07 PM
Member
 
Join Date: Jul 2007
Posts: 74
Rep Power: 0
Swamipsn is on a distinguished road
Default
Hi,
Array is a static data structure but vertor is dynamic. For example if you
declare int a[10] as array you are able to store only 0 to 9 values. When you declare the same Vector a its dynamically grow depends on your code, you can store 1 to ...etc data in that.
Bookmark Post in Technorati
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Convert a vector to a string array orchid New To Java 4 02-24-2010 03:31 AM
How i add string array in vector susan New To Java 7 02-12-2009 02:32 PM
Converting an Array to a Vector Java Tip java.lang 0 04-14-2008 09:44 PM
Vector help king_arthur New To Java 3 01-22-2008 08:33 PM
Array or Vector ravian New To Java 2 11-18-2007 07:19 PM


All times are GMT +2. The time now is 01:24 AM.



VBulletin, Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2009, Crawlability, Inc.
Copyright ©2006 - 2007, www.java-forums.org