1
Answer

memory allocation exception ??

Hi

Define the exception class MemoryAllocationException and then revise the definition of the method push in the class LinkedStack so that it throws this exception if it cannot allocate a new node.


Ty in advance 

Answers (1)