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 |
How to reduce flicking in animation?
Explain why wait(), notify() and notifyall() methods are in object class rather than in the reading class?
What is methods and methodology?
What are the advantages of defining packages in java?
How many types of packages are there in Java?
Can we use switch statement with strings?
Explain runtime exceptions?
Explain access modifiers in java.
What is the use of set in java?
What causes memory leak in java?
When a byte datatype is used?
Implement 2 stacks with just 1 array. The stack routines must not indicate overflow unless every slot in array is used.