a) Stream method findFirst is a short-circuiting terminal operation that processes the
stream pipeline but terminates processing as soon as an object is found.
b) Stream method flatMap receives a Function that maps a stream into an object. For example,
the object could be a String containing words and the result could be another
intermediate Stream for the individual words.
c) When a class implements an interface with default methods and overrides them, the
class inherits the default methods’ implementations. An interface’s designer can now
evolve an interface by adding new default and static methods without breaking existing
code that implements the interface.
Already registered? Login
Not Account? Sign up
Enter your email address to reset your password
Back to Login? Click here