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 |
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.
How to do a true java ping from windows?
What is the Difference between Final Class && Abstract Class?
What is jit compiler in java?
Explain differences between checked and unchecked exceptions in java?
Can I import same package/class twice?
How do you start a thread?
How many bytes are there?
How do you define a singleton class?
What is static variable with example?
Is main an identifier?
How do you reverse a string in java without using string buffer?