Users Pricing

forum

home / developersection / forums / why is java vector class considered obsolete or deprecated?

Why is Java Vector class considered obsolete or deprecated?

Anonymous User 2745 10 Jul 2015
Isn't its use valid when working with concurrency?

And if I don't want to manually synchronize objects and just want to use a thread-safe collection without needing to make fresh copies of the underlying array (as CopyOnWriteArrayList does), then is it fine to use Vector?

What about Stack, which is a subclass of Vector, what should I use instead of it?

I am a content writter !


1 Answers