posted 9 months ago
Erdem,
I've added the fact that offer can throw an exception to the errata. Thanks for noticing that.
I've added the fact that offer can throw an exception to the errata. Thanks for noticing that.
[OCA 8 book] [OCP 8 book] [Practice tests book] [Blog] [JavaRanch FAQ] [How To Ask Questions] [Book Promos]
Other Certs: SCEA Part 1, Part 2 & 3, Core Spring 3, TOGAF part 1 and part 2
posted 4 months ago
I disagree with that one, since method offer(e) doesn't throw an exception --> see API Doc: Interface Queue<E>
Summary of Queue methods:
Throws exception Returns special value
Insert add(e) offer(e)
Remove remove() poll()
Examine element() peek()
Furthermore add(e) invokes addLast(e), while offer(e) invokes offerLast(e).
Summary of Queue methods:
Throws exception Returns special value
Insert add(e) offer(e)
Remove remove() poll()
Examine element() peek()
Furthermore add(e) invokes addLast(e), while offer(e) invokes offerLast(e).
posted 4 months ago
I don't know what I was thinking when I logged the errata. As you noted the JavaDoc clearly says that. Removed the errata.
[OCA 8 book] [OCP 8 book] [Practice tests book] [Blog] [JavaRanch FAQ] [How To Ask Questions] [Book Promos]
Other Certs: SCEA Part 1, Part 2 & 3, Core Spring 3, TOGAF part 1 and part 2
posted 2 months ago
I apparently had some "press save after making change" troubles. Now it is really removed from the list.
João Victor Gomes wrote:
Jeanne Boyarsky wrote:I don't know what I was thinking when I logged the errata. As you noted the JavaDoc clearly says that. Removed the errata.
Hello Jeanne. I was just about to create a topic about this.
I believe the errata wasn't removed yet, right?
I apparently had some "press save after making change" troubles. Now it is really removed from the list.
[OCA 8 book] [OCP 8 book] [Practice tests book] [Blog] [JavaRanch FAQ] [How To Ask Questions] [Book Promos]
Other Certs: SCEA Part 1, Part 2 & 3, Core Spring 3, TOGAF part 1 and part 2

rubbery bacon. rubbery tiny ad:
Thread Boost - a very different sort of advertising
https://coderanch.com/t/674455/Thread-Boost-feature
|