If a stack has a maximum size of 100 and you attempt to push 101 elements onto it, what will happen?
-
The 101st element will be pushed successfully.
-
An error will occur due to stack overflow.
-
The stack will automatically resize.
-
The stack will discard the oldest element.