In which order Queue collection class returns data ?
First In First Out
Last In First Out
It depends on the order in which we are removing data programatically.
None of the above.
In the below sample code first item is removed when Dequeue method is called for First time.
Queue s = new Queue();
string name=s.Dequeue().ToString();//raju is deleted from queue since it is first inserted
Console.WriteLine(name);//raju is the output
Back To Top