what is the difference between ArrayList and Vector

Answer Posted / subha

What is the intial buffer size of arraylist?

public Vector() {
this(10);
}
if u check v.capacity(),it'l display the buffer size of vector.
like i need a program to find intial buffer size of arraylist.
plz see java class for arraylist.
public ArrayList() {
this(10);
}
if anyone knows about this one.plz post the comment.

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

List implementations of list interface?

810


What are the default and parameterized constructors?

820


Is sizeof a keyword in java programming?

835


What is the use of join method?

811


What are variable names?

739


What is mean by encoding?

828


Can main() method in java can return any data?

915


why we use merge option in hybernate pls give a ex snippet

1711


What is the benefit of abstract class?

728


What is autoboxing and unboxing?

780


a thread is runnable, how does that work? : Java thread

707


Why enumeration is faster than iterator?

728


What are the 6 functions?

736


How is it possible in java programming for two string objects with identical values not to be equal under the == operator?

800


What a static class can contains?

935