What is the initial capacity of a `Stack` in Java?
The initial capacity of a `Stack` is 10, which can grow dynamically as elements are added.
Exactly! A `Stack` starts with an initial capacity of 10, and it grows automatically as needed.
Can you explain how the capacity of a `Stack` changes when it exceeds the initial capacity?