why is Stack a class while Queue is a Interface?

Viewed 9540

I think they are very similar...And when do we need to use stack or queue, why not just use ArrayList or LinkedList to replace them?

2 Answers
Related