what is the difference between ArrayList and Vector

Answer Posted / mohammed salim

1. Arraylist is not synchronized while vector is.
2. Arraylist has no default size while vector has a default
size of 10.

Is This Answer Correct ?    89 Yes 20 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

When will you define a method as static?

567


What is an object’s lock and which object’s have locks?

509


whatis Home interface and Remoteinterface? with example?

1555


what are three ways in which a thread can enter the waiting state? Or what are different ways in which a thread can enter the waiting state? : Java thread

529


What is difference between path and classpath in java?

487






Why java applets are more useful for intranets as compared to internet?

582


When should I use a singleton?

563


What is string and its types?

617


What is meant by oops concept in java?

508


Which programming language is most secure?

537


What causes memory leaks in java?

496


What is variable argument in java?

564


What are the advantages of exception handling in java?

650


What is a ternary operator in java? What is an interface?

553


What is the difference between static and non-static variables in java programming?

525