This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes Java in General and the fly likes Is java.util.Stack synchronized? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Java in General
Bookmark "Is java.util.Stack synchronized?" Watch "Is java.util.Stack synchronized?" New topic

Is java.util.Stack synchronized?

Jaikiran Pai

Joined: Jul 20, 2005
Posts: 9915

Is java.util.Stack synchronized(like java.util.Vector)? Could not find the information in the javadocs.

[My Blog] [JavaRanch Journal]
Ernest Friedman-Hill
author and iconoclast

Joined: Jul 08, 2003
Posts: 24183

Yes, pretty much, as Stack is just a thin subclass of Vector which operates by calling Vector's methods.

[Jess in Action][AskingGoodQuestions]
Jaikiran Pai

Joined: Jul 20, 2005
Posts: 9915

Thank you.
[ February 09, 2006: Message edited by: jaikiran pai ]
I agree. Here's the link:
subject: Is java.util.Stack synchronized?
Similar Threads
Stack class in Java ?
String Immutability
peek() and pop() in the Stack class - why synchronize?
No idea what is happening...
itemAt Stacks