CoolInterview.com - World's Largest Collection of Interview Questions & Answers, FAQs, queries, sample papers, exam papers, dumps, what, why, how, where, when questions OneStopTesting.com - Testing EBooks, Tutorials, Articles, Jobs, Training Institutes etc.
OneStopGate.com - Gate EBooks, Tutorials, Articles, FAQs, Jobs, Training Institutes etc.
OneStopMBA.com - MBA EBooks, Tutorials, Articles, FAQs, Jobs, Training Institutes etc.
OneStopIAS.com - IAS EBooks, Tutorials, Articles, FAQs, Jobs, Training Institutes etc.
OneStopSAP.com - SAP EBooks, Tutorials, Articles, FAQs, Jobs, Training Institutes etc.
OneStopGRE.com - of GRE EBooks, Tutorials, Articles, FAQs, Jobs, Training Institutes etc.

Sponsored Links

Interview Questions
Our Services



INTERVIEW QUESTIONS DATA STRUCTURE DETAILS
Question :

Why is the isEmpty() member method called?

Category Data Structure Interview Questions
Rating (3.0) By 21 users
Added on 8/31/2014
Views 275
Rate it!


Answers:

Source: CoolInterview.com

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.
Source: CoolInterview.com



Source: CoolInterview.com

isEmpty() checks stack is empty or not.It returns true stack is empty otherwise false.
Source: CoolInterview.com



Posted by: Rehana

Contact Rehana Contact Rehana

Source: CoolInterview.com

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
Source: CoolInterview.com



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 CoolInterview.com:-
  • 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 Vyoms.com - Best Freshers & Experienced Jobs Website.

View ALL Data Structure Interview Questions & Answers



User Options
India News Network

Latest 20 Questions
What is BBclone ?
What is Corporate Tax Planning?
What are the Corporate Tax rebates applicable in India?
What is Corporate Tax Rate for Foreign Companies in India?
What is Corporate Tax Rate for Domestic Companies in India?
What is meant by Income of a Company?
What is meant by a Corporate?
How Corporate Tax is levied in India?
What are various categories of Corporate Taxes?
What is Corporate Tax?
What is the scope of Securities Transaction Tax (STT)?
What is meant by Securities, in case of Securities Transaction Tax (STT)?
What are taxable transactions in case of Securities Transaction Tax (STT)?
Give an example of Securities Transaction Tax (STT)?
When is Securities Transaction Tax levied?
What is the difference between Securities Transaction Tax (STT) and Income Tax?
What are the securities on which STT is applicable?
What is the Securities Transaction Tax (STT) Rate in India?
What are the main features of Securities Transaction Tax (STT)?
What is Securities Transaction Tax, STT?



Fresher Jobs | Experienced Jobs | Government Jobs | Walkin Jobs | Company Profiles | Interview Questions | Placement Papers | Companies In India | Consultants In India | Colleges In India | Exams In India | Latest Results | Notifications In India | Call Centers In India | Training Institutes In India | Job Communities In India | Courses In India | Jobs by Keyskills | Jobs by Functional Areas

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

Gate Articles | Gate Books | Gate Colleges | Gate Downloads | Gate Faqs | Gate Jobs | Gate News | Gate Sample Papers | Gate Training Institutes

MBA Articles | MBA Books | MBA Case Studies | MBA Business Schools | MBA Current Affairs | MBA Downloads | MBA Events | MBA Notifications | MBA FAQs | MBA Jobs
MBA Job Consultants | MBA News | MBA Results | MBA Courses | MBA Sample Papers | MBA Interview Questions | MBA Training Institutes

GRE Articles | GRE Books | GRE Colleges | GRE Downloads | GRE Events | GRE FAQs | GRE News | GRE Training Institutes | GRE Sample Papers

IAS Articles | IAS Books | IAS Current Affairs | IAS Downloads | IAS Events | IAS FAQs | IAS News | IAS Notifications | IAS UPSC Jobs | IAS Previous Question Papers
IAS Results | IAS Sample Papers | IAS Interview Questions | IAS Training Institutes | IAS Toppers Interview

SAP Articles | SAP Books | SAP Certifications | SAP Companies | SAP Study Materials | SAP Events | SAP FAQs | SAP Jobs | SAP Job Consultants
SAP Links | SAP News | SAP Sample Papers | SAP Interview Questions | SAP Training Institutes |




Copyright ©2003-2016 CoolInterview.com, All Rights Reserved.
Privacy Policy | Terms and Conditions



Cache = 0.007812 Seconds