--:--









Quiz for Stream API

Course: JAVA | Subject: Java | Topic: Java 8 Features



Logo

Q1: What is the primary purpose of Java Stream API?

Logo

Q2: Which method converts a list to a stream?

Logo

Q3: What does the 'filter()' method do in a stream?

Logo

Q4: Which stream method transforms each element?

Logo

Q5: Which terminal operation returns a result by combining elements?

Logo

Q6: Which operation is intermediate in Stream API?

Logo

Q7: Which is a terminal operation?

Logo

Q8: What does forEach() do?

Logo

Q9: Which interface does Stream API belong to?

Logo

Q10: What is the output of count()?

Are you ready to start test? Set your time limit