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

What is a package in java? List down various advantages of packages.

0 Answers  


How do I get a substring?

0 Answers  


What is an 8 bit word?

0 Answers  


What is integers and example?

0 Answers  


Why is multiple inheritance not supported in java?

0 Answers  






I want to re-reach and use an object once it has been garbage collected. Define how it’s possible?

0 Answers  


What do you mean by global variable?

0 Answers  


What happens if I remove static from main method?

0 Answers  


Explain throw keyword in java?

0 Answers  


Is node a data type in java?

0 Answers  


Explain restrictions for using anonymous inner classes?

0 Answers  


Explain the transient field modifier?

0 Answers  


Categories