100% Pass
A static method in an interface can be called without an instance of the interface.
✔✔True
The Comparator functional interface is used to define custom sorting logic in Java.
✔✔True
Parallel streams in Java can improve performance on multi-core processors.
✔✔True
A lambda expression can access effectively final variables from the enclosing scope.
✔✔True
Streams can modify elements in a collection directly.
✔✔False
1
, The sorted() method in Streams sorts elements based on their natural order by default.
✔✔True
A supplier functional interface takes an argument and returns a value.
✔✔False
The forEach() method in Streams is a terminal operation.
✔✔True
An interface can extend another interface in Java.
✔✔True
A method reference to an instance method requires an instance of the class.
✔✔True
The join() method in Collectors is used to concatenate Strings in a stream.
✔✔True
2