Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

PriorityBlockingQueue logically unbounded but not actually?

In the specification of PriorityBlockingQueue, it says:

While this queue is logically unbounded, attempted additions may fail due to resource exhaustion (causing OutOfMemoryError).

Are there any collection classes that permit storage of unbounded objects without getting resources exhaustion or OutOfMemoryError?

like image 983
Dog Avatar asked Dec 13 '25 23:12

Dog


1 Answers

No, because the amount of matter available for computational purposes is finite (seriously).

like image 70
Ernest Friedman-Hill Avatar answered Dec 16 '25 13:12

Ernest Friedman-Hill



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!