CSD201_-_RE_-_SU_2023_555.webp
Todoroki_87

CSD201_-_RE_-_SU_2023_555.webp

OD
(Choose 1 answer)
Specify the correct implementation of dequeue() method of a queue. This queue uses java.u storing data and the head of the list is treated as the head of the queue. (Choose the most si
A. Object dequeue()
{ if (isEmpty()) return(null);}return(pool.remove(pool.size()));
B. void dequeue(Object x)
{ if (isEmpty()) return(null);pool.remove(pool.size()-1);
}
C. Object dequeue(){if (isEmpty()) return;
return(pool.remove(pool.size()-1));
}
D. Object dequeue(){ if (isEmpty()) return(null);return(pool.remove(0));
}

Exit 42

Thông tin

Category
CSD201
Thêm bởi
Todoroki_87
Ngày thêm
Lượt xem
2,013
Lượt bình luận
23
Rating
0.00 star(s) 0 đánh giá

Image metadata

Filename
CSD201_-_RE_-_SU_2023_555.webp
File size
57.7 KB
Dimensions
1542px x 690px

Share this media

Back
Bên trên Bottom