1 Answers
Can stream API be used to process limited or infinite number of elements?
Yes, the Java Stream API can be used to process both limited and infinite number of elements efficiently. The Stream API provides methods to work with finite collections as well as infinite streams like generate and iterate.
Please login or Register to submit your answer