isEmpty() and isFull() operations tell us to push or pop in a Stack and avoid cases of overflow or underflow error.