This week's book giveaway is in the Agile and other Processes forum.
We're giving away four copies of The Mikado Method and have Ola Ellnestam and Daniel Brolund 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
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Java » Java in General
Reply Bookmark "Is java.util.Stack synchronized?" Watch "Is java.util.Stack synchronized?" New topic
Author

Is java.util.Stack synchronized?

Jaikiran Pai
Marshal

Joined: Jul 20, 2005
Posts: 8145
    
  52

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
Marshal

Joined: Jul 08, 2003
Posts: 24057
    
  13

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
Marshal

Joined: Jul 20, 2005
Posts: 8145
    
  52

Thank you.
[ February 09, 2006: Message edited by: jaikiran pai ]
 
I agree. Here's the link: http://zeroturnaround.com/jrebel - it saves me about five hours per week
 
subject: Is java.util.Stack synchronized?
 
Similar Threads
peek() and pop() in the Stack class - why synchronize?
Stack class in Java ?
No idea what is happening...
itemAt Stacks
String Immutability