Co-Authored-By: Claude Sonnet 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_017ic4b4HkWoC7hLzk61vZa8
8 lines
251 B
Plaintext
8 lines
251 B
Plaintext
Calls PriorityQueue rejects
|
|
===========================
|
|
|
|
add(null) : NullPointerException
|
|
add(new Object()) to an empty queue : ClassCastException
|
|
new PriorityQueue<>(0) : IllegalArgumentException
|
|
add while iterating : ConcurrentModificationException
|