- World's Largest Collection of Interview Questions
Start Your Own website Now
Sponsored Links

Interview Questions
Our Services

Get 9,000 Interview Questions & Answers in an eBook.

  • 9500+ Pages
  • 9000 Question & Answers
  • All Tech. Categories
  • 14 MB Content

    Get it now !!

    Send your Resume to 6000 Companies

    Question :
    Why is the isEmpty() member method called?
    Category Data Structure Interview Questions
    Rating (0.4) By 1448 users
    Added on 8/31/2009
    Views 1802
    Rate it!

    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.

    isEmpty() checks stack is empty or not.It returns true stack is empty otherwise false.

    Posted by: Rehana    

    Contact Rehana Contact Rehana

    pop() is one of the most important operation performed onto the stack. This operation remove the topmost element from the stack. But for that we must have to check stack is empty or not. If stack is empty & we are going to perform pop() operation at that time it underflows therefore while doing pop() operation we have to check stack is empty or not this work is done by calling isEmpty() method

    Posted by: Jibrail Bagwan    

    Contact Jibrail Bagwan Contact Jibrail Bagwan

    If you have the better answer, then send it to us. We will display your answer after the approval.
    Rules to Post Answers in

  • There should not be any Spelling Mistakes.
  • There should not be any Gramatical Errors.
  • Answers must not contain any bad words.
  • Answers should not be the repeat of same answer, already approved.
  • Answer should be complete in itself.
  • Name :*
    Email Id :*
    Answer :*
    Verification Code Code Image - Please contact webmaster if you have problems seeing this image code Not readable? Load New Code
    Process Verification  Enter the above shown code:*
    Inform me about updated answers to this question

    Related Questions
    View Answer
    What are the major data structures used in the following areas : RDBMS, Network data model & Hierarchical data model?
    View Answer
    What is Heap data structure?
    View Answer
    What is the stack?
    View Answer

    Please Note: We keep on updating better answers to this site. In case you are looking for Jobs, Pls Click Here - Best Freshers & Experienced Jobs Website.

    View ALL Data Structure Interview Questions

    User Options
    Sponsored Links

    Copyright ©2003-2015, All Rights Reserved.
    Privacy Policy | Terms and Conditions

    Download Yahoo Messenger | Placement Papers| FREE SMS | ASP .Net Tutorial | Web Hosting | Dedicated Servers | C Interview Questions & Answers

    Testing Articles | Testing Books | Testing Certifications | Testing FAQs | Testing Downloads | Testing Interview Questions | Testing Jobs | Testing Training Institutes

    Cache = 0.077637 Seconds