Differentiate Vector and ArrayList?

Answer Posted / 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



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is formatted output?

524


What comes to mind when someone mentions a shallow copy in java?

671


Explain the difference between abstraction and encapsulation.

545


What is meant by structural programming?

558


What happens when a thread cannot acquire a lock on an object in java programming?

557






How can you avoid serialization in child class if the base class is implementing the serializable interface?

646


What is the private method modifier?

596


Give a brief description of java socket programming?

538


Can a class have an interface?

557


If you do not want your class to be inherited by any other class. What would you do?

569


Explain OOPs concept.

655


What does split function do in java?

547


What is the difference between final, finally and finalize() in java?

529


What are the methods used to implement for the key object in the hash map?

575


Why string is a class?

550