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.insert("apple") ;
B) myQueue.put("apple") ;
C) myQueue.push("apple") ;
D) myQueue.add("apple") ;
Correct Answer:

Verified
Correct Answer:
Verified
Related Questions
Q83: Which nodes need to be updated when
Q84: Your program uses a Map structure to
Q85: Assume that you have declared a set
Q86: You use a(n) _ to access elements
Q87: You need to write a program to
Q89: Which of the following statements about stacks
Q90: Which of the following correctly declares a
Q91: The nodes of a(n) _ linked list
Q92: You need to access values by their
Q93: The term _ is used in computer