Vidyalelo
Data Structure · Q74

Introduction to Data Structures

Programming · Data Structure · question 74

Q74

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
Answer
D.
NoStackException is thrown

Answer: Option C

Solution

Answer: Option C
No explanation is given for this question Let's Discuss on Board