Autodesk interview question

How is stack implemented by Java?