What is the purpose of limit method of stream in Java 8?
The 'limit' method is used to reduce the size of the stream.