What is the difference between Stack and Queue ?
Javasearch.buggybread.com
Share

Search Interview Questions


 3361 questions in repository.
 There are more than 200 unanswered questions.
Click here and help us by providing the answer.
 Have a video suggestion.
Click Correct / Improve and please let us know.
Label / Company      Label / Company / Text

   



Java - Interview Questions and Answers

 Q1. What is the difference between Stack and Queue ?Data Structures2017-06-18 18:10:36

Ans. Stack is based on Last in First out (LIFO) principle while a queue is based on FIFO (First In First Out) principle.

 Help us improve. Please let us know the company, where you were asked this question :   

   Like         Discuss         Correct / Improve     data structure  stack vs queue  stack  queue      Basic


Related Questions

 What will happen if we don't have termination statement in recursion ?
 Why two types of memory - stack and heap are required by Java ?
  Why do member variables have default values whereas local variables don't have any default value ?
  Which memory areas does instance and static variables use ?
  Which kind of memory is used for storing object member variables and function local variables ?
  Difference between Stack and Heap memory ?
 Which type of memory is cleaned / recovered by garbage collection - stack or heap ?
 What will happen if we don't have termination statement in recursion ?
 Given a string and index for the opening bracket, find the index of matching closing bracket.




Subscribe to Java News and Posts. Get latest updates and posts on Java from Buggybread.com
Enter your email address:
Delivered by FeedBurner



comments powered by Disqus
 

Help us and Others Improve. Please let us know the questions asked in any of your previous interview.

Any input from you will be highly appreciated and It will unlock the application for 10 more requests.

Company Name:
Questions Asked:
         

X Close this