What happens when you pop from an empty stack while implementing using the Stack ADT in Java?
(a) Undefined error
(b) Compiler displays a warning
(c) EmptyStackException is thrown
(d) NoStackException is thrown
My query is from Stack using Array topic in portion Abstract Data Types of Data Structures & Algorithms I
This question was addressed to me during an internship interview.