What is the purpose of filter method of stream in Java 8?
The 'filter' method is used to eliminate elements based on a criteria.