Why Future Generations Will Hate You for Using java.util.Stack 09.12.2012 Before I kill you with some meaningless tautology, here is the gist If your application is near real time or you are sending your code to Mars, you need to keep off the default Stack implementation in Java. Write your own version based on LinkedList. Again, if your application is mission critical and your Stack is expected to be manipulated by concurrent threads, then use a ConcurrentLinkedDeque or write your own Stack based on LinkedList - just make sure your add and remove operations are thread safe. While doing so,
Read full article from Why Future Generations Will Hate You for Using java.util.Stack | Javalobby
No comments:
Post a Comment