Question: Which gives better performace Stack vs Arraylist
I want to implemet a generic Stack implementation. I am confused whether to use java.util.Stack class or to simulate ArrayList as Stack? I am very much concerned about performance ( even if it increases 1% am happy! ). I have only 2 operations on stack push,pop. That's all.
Waiting for your Replay