Perhaps this is a minor Java issue.
I have used Stack repeatedly .
I read that this is considered an inherited class, and due to the fact that subclasses Vectormake its performance poor in single-threaded applications.
My question is: what is the best alternative among Java Collection classes?
Is there another class Stack(by a different name) that is being selected?
I mean, to implement the arround stack, another existing data structure is simple, but I would expect an existing one to exist Stack.
source
share