Why is the isEmpty() member method called?

Submitted by: Administrator
The isEmpty() member method is called within the dequeue process to determine if there is an item in the queue to be removed i.e. isEmpty() is called to decide whether the queue has at least one element. This method is called by the dequeue() method before returning the front element.
Submitted by: Administrator

Read Online Data Structures Job Interview Questions And Answers