Differentiate Vector and ArrayList?

Answer Posted / uthrakumar-wipro technologies

array list store only one type of datas ie thier datatype
should be similar


whereas vectore can store different datatype variables ie
withrespect to the <class> datatype....for using vector we
have to convert the data into objects using the following
syntax...


eg:
char <obj>=new char();

Is This Answer Correct ?    4 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is double checked locking in singleton?

602


What is serial version uid and its importance in java?

594


Does java isempty check for null?

565


Explain jvm, jre, and jdk?

555


Which sorting algorithm is best in java?

529






Why java is used everywhere?

584


Differentiate between the constructors and methods in java?

499


Can sleep() method causes another thread to sleep?

558


Difference between predicate, supplier and consumer ?

571


Can we execute java program without main method?

516


explain different ways of using thread? : Java thread

567


How does arraylist work in java?

520


Why is string buffer better than string ?

589


What is the main use of generics in java?

503


Explain hashset and its features?

572