What is Vector?Can you elaborate how Vector is Thread safe?

Answer Posted / aruna

Vector is a class in collection framework which omplements
list interface.It is one of the legacy classes in
collection FW.As all the methods in the vector class are
synchronised it is thread safe.

Is This Answer Correct ?    9 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How will you get the platform dependent values like line separator, path separator, etc., ?

575


What are the differences between string, stringbuffer and stringbuilder?

513


what is abstract class in Java?

646


What is a function in java?

563


Can a string be null?

538






Write a program to find maximum and minimum number in array?

544


Where are local variables stored?

508


If two threads have same priority which thread will be executed first ?

839


What java is used for?

654


What is the main purpose of java?

510


what is mutual exclusion? : Java thread

550


What does java edition mean?

520


What is locale?

596


What are the different types of collections in java?

526


How big is a gigabyte?

611