What is Vector?Can you elaborate how Vector is Thread safe?
Answer Posted / 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 |
Post New Answer View All Answers
Why is sizeof not a function?
What are generic methods?
What is exception propagation?
What is get () in java?
Is the empty set a singleton?
What is java algorithm?
what is thread? : Java thread
How many threads does a core java have?
How do you print array in java?
In case of inheritance what is the execution order of constructor and destructor?
Which collection is thread safe in java?
Can we use return in constructor?
What is the difference between declaration and definition in java?
Can we have 2 main methods in java class?
What is difference between static and final?