Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


Differentiate Vector and ArrayList?

Answers were Sorted based on User's Feedback



Differentiate Vector and ArrayList?..

Answer / pranab dutta

Vector is synchronized
Arraylist is not synchronized.

Is This Answer Correct ?    7 Yes 0 No

Differentiate Vector and ArrayList?..

Answer / pallavi thakare

a)Vector is a synchronized, where as an ArrayList is not
synchronized.
b)arraylist is not leggacy,it introduce JDK 1.7,where vector is leggacy.
c)arraylist uses iterator,where vector used enumration.

Is This Answer Correct ?    5 Yes 0 No

Differentiate Vector and ArrayList?..

Answer / uthrakumar-wipro technologies

array list store only one type of datas ie thier datatype
should be similar


whereas vectore can store different datatype variables ie
withrespect to the <class> datatype....for using vector we
have to convert the data into objects using the following
syntax...


eg:
char <obj>=new char();

Is This Answer Correct ?    5 Yes 2 No

Differentiate Vector and ArrayList?..

Answer / anitha

a)Vector is a synchronized, where as an ArrayList is not
synchronized.

b)when size is going to exceed, the ArrayList size is
double of it's size, where as Vector size is increase half
of its size.

except these two both r roughlt equal.

Is This Answer Correct ?    4 Yes 3 No

Differentiate Vector and ArrayList?..

Answer / chinmay

vector is a legacy class but ArrayList is a collection class
vector is synchronized where as ArrayList is not

Is This Answer Correct ?    1 Yes 0 No

Differentiate Vector and ArrayList?..

Answer / v.kannan

Vector is synchronized where as
Arraylist is not synchronized.
In Array List there is no guarantee elements will be in
order(It will vary System to System)

Is This Answer Correct ?    2 Yes 6 No

Post New Answer

More Core Java Interview Questions

What is math floor in java?

0 Answers  


What do you know about the garbage collector in java?

0 Answers   TCS,


What do you understand by soft reference?

0 Answers  


What is the difference between java applets and applications?

0 Answers  


What is structure of java heap? What is perm gen space in heap?

0 Answers  


What is JFC?

0 Answers  


what is server side caching?

0 Answers   AIG,


What is multi-catch block in java?

0 Answers  


What is difference between pointer and reference?

0 Answers  


What are the major drawbacks of external iteration?

0 Answers  


What is treeset in java collection?

0 Answers  


what are the purposes of native, transiant key words?

2 Answers  


Categories