Oracle interview question

Stack implementation in Java