Jan 10th, 2013 Java has long had a badly written implementation of a stack. The stack is a great example of single responsibility; it’s supposed to implement LIFO and only LIFO behaviour. Java ignores this principle with the default implementation of Stack Vector and so is implemented in terms of inheritance rather than aggregation. It’s both a Stack Vector .
Read full article from Java Stack vs Deque - bad.robot
No comments:
Post a Comment