List methods available in Java Queue interface

Answer Posted / 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       View All Answers


Please Help Members By Posting Answers For Below Questions

What is a boolean used for?

573


Is char a method in java?

502


What is subsequence of a string?

588


What is a prefix function.write down a code to compute prefix function.

522


Explain about the interpreter in java?

617






Can private method static?

461


What will be the initial value of an object reference which is defined as an instance variable?

621


Can a class be final?

484


What is parsing a sentence?

534


What is difference between fileinputstream and filereader in java?

547


What are operators and its types?

557


Describe string intern() methodology

583


Can we have static methods in an interface?

542


What is super keyword explain with example?

521


What is a method in java?

544