Which method is used to convert a stream of objects into a list in Java?
a) toArray()
b) toList()
c) toSet()
d) toMap()
Solution: b) toList()
Explanation: The toList() method is used to convert a stream of objects into a list in Java.