What is Vector?Can you elaborate how Vector is Thread safe?
Answers were Sorted based on User's Feedback
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 |
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 |
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 |
What is a package in java? List down various advantages of packages.
How do I get a substring?
What is an 8 bit word?
What is integers and example?
Why is multiple inheritance not supported in java?
I want to re-reach and use an object once it has been garbage collected. Define how it’s possible?
What do you mean by global variable?
What happens if I remove static from main method?
Explain throw keyword in java?
Is node a data type in java?
Explain restrictions for using anonymous inner classes?
Explain the transient field modifier?