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

What is an example of a constant variable?

789


What is the difference between yielding and sleeping in java programming?

805


Where are local variables stored?

726


Can we have any code between try and finally blocks?

773


In java, how we can disallow serialization of variables?

739


What are the super most classes for all the streams?

1800


Can we assign the reference to this variable?

739


What is use of functional interface in java 8? Explain

773


Tell me about different OOPS concepts.

782


Can we write a class without main method in java?

688


Can list be final in java?

694


take an array with -ve and +ve value both.find out the nearest value of 0(zero).if two values are same like(-2 and +2)then extract +2 is nearest of 0(zero).

1761


what is use of functional interface in java 8?

785


What is listnode in java?

744


Can we have multiple public classes in a java source file?

782