Solved

Assume That You Have Declared a Queue Named MyQueue to Hold

Question 79

Multiple Choice

Assume that you have declared a queue named myQueue to hold String elements.Which of the following statements will correctly insert an element into myQueue?


A) myQueue.add("apple") ;
B) myQueue.push("apple") ;
C) myQueue.put("apple") ;
D) myQueue.insert("apple") ;

Correct Answer:

verifed

Verified

Unlock this answer now
Get Access to more Verified Answers free of charge

Related Questions