forum

Home / DeveloperSection / Forums / Why is Java Vector class considered obsolete or deprecated?

Why is Java Vector class considered obsolete or deprecated?

Anonymous User224410-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?

Updated on 10-Jul-2015
I am a content writter !

Can you answer this question?


Answer

1 Answers

Liked By