MCQOPTIONS
Saved Bookmarks
| 1. |
What is difference between dequeue() and peek() function of java? |
| A. | dequeue() and peek() remove and return the next time in line |
| B. | dequeue() and peek() return the next item in line |
| C. | dequeue() removes and returns the next item in line while peek() returns the next item in line |
| D. | peek() removes and returns the next item in line while dequeue() returns the next item in line |
| Answer» D. peek() removes and returns the next item in line while dequeue() returns the next item in line | |