Q11_50_20250904125520.webp
Naoya76

Q11_50_20250904125520.webp

  • Media owner Naoya76
  • Ngày thêm
☑Kizspy.me
Answer (Choose 1 answer)
☐ A
Back
Next
Specify the correct implementation of dequeue() method of a queue. This queue uses java.util.LinkedList for
storing data and the head of the list is treated as the head of the queue. (Choose the most suitable one)
A. Object dequeue()
{ if (isEmpty()) return(null);
}
return(pool.removeFirst());
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.removeLast());
FUQ.sh
sh the exam.

Thông tin

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

Share this media

Back
Bên trên Bottom