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

Answers were Sorted based on User's Feedback



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

Answer / srilatha

Vector is synchronized and thread safe
it allows one thread can access at a time

Is This Answer Correct ?    17 Yes 1 No

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

Answer / kk

Vector is a growable array.

The methods in Vector class are synchronized which makes
vector thread safe.

Is This Answer Correct ?    10 Yes 1 No

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

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

More Core Java Interview Questions

Marker interface means , interface which has no methods.Then what is the necessity of its usage.I read "it tells the compiler that it should be treated differently ". "It is used to store state of an object". But still am not clear.Please explain clearly.

2 Answers  


How to do a true java ping from windows?

0 Answers  


What is the Difference between Final Class && Abstract Class?

0 Answers   HCL,


What is jit compiler in java?

0 Answers  


Explain differences between checked and unchecked exceptions in java?

0 Answers  






Can I import same package/class twice?

0 Answers  


How do you start a thread?

0 Answers  


How many bytes are there?

0 Answers  


How do you define a singleton class?

0 Answers  


What is static variable with example?

0 Answers  


Is main an identifier?

0 Answers  


How do you reverse a string in java without using string buffer?

0 Answers  


Categories