Question
QUESTION 28 The remove() method in the Queue interface ________. A retrieves and removes the head of this queue, or null if this queue is
QUESTION 28
The remove() method in the Queue interface ________.
| A retrieves and removes the head of this queue, or null if this queue is empty | |
| B retrieves and removes the head of this queue and throws an exception if this queue is empty | |
| C retrieves, but does not remove, the head of this queue, returning null if this queue is empty | |
| E retrieves, but does not remove, the head of this queue, throwing an exception if this queue is empty |
QUESTION 24
When you create an ArrayList using ArrayList
True
False
QUESTION 26
You can use the methods in the Arrays class to sort an array.
True
False
QUESTION 30
Will the following code have a compile error? ArrayList
| Yes | |||||||||||||||||||
| No QUESTION 48 You can use the methods in the Arrays class to do a binary search on an array.
True False
QUESTION 53 Will the following code have a runtime error? Comparable c = new Date(); int i = c.compareTo("time");
|
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started