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
What are the different approaches to implement a function to generate a random number?
What is consumer interface?
Difference between default and protected access specifiers?
How many java versions are there?
What are the two basic ways in which classes that can be run as threads may be defined?
What are the three parts of a lambda expression?
Why does the integer quotient -0/3 yield 0, but the double quotient -0.0/3.0 yields – 0.0?
what is inner class in java?
If goto and const is reserve words than why it is not work in java?
What is toarray method in java?
What is a memory leak in java?
What is final method?
What class allows you to read objects directly from a stream?
What are the 6 mandatory procedures for iso 9001?
How will you compute size of a structure?