List methods available in Java Queue interface



List methods available in Java Queue interface..

Answer / hrindows@gmail.com

boolean add(object)
boolean offer(object)
object remove()
object poll()
object element()
object peek()

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Core Java Interview Questions

Can we execute a program without main?

0 Answers  


Is array a class in java?

0 Answers  


What are the advantages of user defined functions?

0 Answers  


What is the diffrence between inner class and nested class?

0 Answers  


How can we handle runtime exceptions? write one sample program? Can we write runtime exceptions beside the throws key word? if yes write sample program?

1 Answers   Huawei,






What is Hash Code in Java?

6 Answers   Cognizant,


What is boolean keyword in java?

0 Answers  


what is difference between front controller and action servlet?

2 Answers  


what is the use of StringBuffer?

2 Answers   Accenture,


How we can skip finally block of exception even if some exception occurs in the exception block in java?

0 Answers  


Explain the differences between static and dynamic variables?

0 Answers   Fidelity,


What’s the difference between constructors and other methods?

0 Answers  


Categories