13The Interface Stack public interface Stack { public boolean empty();public Object peek();public void push(Object theObject);public Object pop();}Choice of method names is the same as used in Java’s class java.util.Stack. Notice the difference in names of the method to check if an instance is empty—isEmpty for linear lists and empty for a stack.