Difference between Linked list and Queue?



Difference between Linked list and Queue?..

Answer / Mahesh Chandra

A Linked List is a linear data structure where each element points to the next one, while a Queue is a collection of elements that follows a specific order (FIFO - First In First Out). A Queue typically has operations like enqueue (insert at the rear), dequeue (remove from the front), peek (look at the front without removing it), and size.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Core Java Interview Questions

Superclass of exception

4 Answers   Nous,


Explain difference between final, finally and finalize?

3 Answers   Cognizant,


How are java objects passed to a method and what are native methods?

1 Answers   Genpact,


What is character in data type?

1 Answers  


why applet doesn't have main? isn't possible a program with out main?

9 Answers   TCS,


Should database connections be singleton?

1 Answers  


can java object be locked down for exclusive use by a given thread? Or what happens when a thread cannot acquire a lock on an object? : Java thread

1 Answers  


What is the use join() in Threads ?

5 Answers   HCL,


What is the file type?

1 Answers  


why is multiple inheritance not allowed in java?

7 Answers   Elementus Technologies, Huawei, Infosys,


Which list does not allow duplicates in java?

1 Answers  


When does a class need a virtual destructor?

1 Answers   Flextronics,


Categories