Differentiate Vector and ArrayList?

Answer Posted / pranab dutta

Vector is synchronized
Arraylist is not synchronized.

Is This Answer Correct ?    7 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What does t in java mean?

530


Why wait(),notify(),notifyAll() methods defined in Object class althought we are using in only threads.

2364


Can we create object of inner class in java?

489


What is the use of default method in interface in java?

543


How many bytes is a string java?

523






Is heap stored in ram?

518


Write a program in java to create a doubly linked list containing n nodes.

549


What restrictions are placed on method overriding in java programming?

536


What is bitwise complement?

496


How are this() and super() used with constructors in java programming?

563


When should we create our own custom exception classes?

579


Can we override private methods?

538


What are classloaders?

593


How can you make sure that your singleton class will always return single instance in multi-threaded environment?

563


What are anonymous inner classes?

559