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 the purpose of encapsulation?

552


What are the advantages of defining packages in java?

521


What is the function of log?

562


How listener identify that the event came from a particular object?

1483


What is a literal coding?

529






How do you sort objects in java?

531


what do you mean by java annotations?

567


What happens if an exception is throws from an object's constructor?

645


Why java doesn’t support multiple inheritances?

600


What is a dot notation?

566


How can we access some class in another class in java?

564


Does java have a compiler?

572


What is use of static method?

552


Explain the access modifiers for a class, method and variables?

678


What is the exact difference in between Unicast and Multicast object? Where will it be used?

597