🚀10 questions
Java 8+
Lambdas, Streams, Optional, functional interfaces.
LambdasStream APIOptionalFunctional InterfacesMethod ReferencesDefault Methods
Sample Questions (10 live)
Stream APIMedium
What is the Stream API and how is it different from a loop?
AmazonDeloitteAccentureRead →
OptionalEasy
What problem does Optional solve?
InfosysTCSRead →
Stream APIMedium
Why can parallelStream() make a service slower instead of faster in production?
AmazonGoogleDeloitteRead →
Stream APIEasy
Why isn't a Stream a data structure, and what does that mean for how you use it?
MicrosoftOracleAmazonRead →
Stream APIMedium
How does Stream laziness and short-circuiting actually work, and why does peek() surprise people?
MicrosoftAmazonOracleRead →
Stream APIMedium
When does a Stream pipeline cost more than a plain loop in a hot path?
AmazonGoogleOracleRead →
Stream APIMedium
What's the silent bug when Collectors.toMap() hits a duplicate key?
AmazonMicrosoftDeloitteRead →
OptionalMedium
When is Optional the right call, and when does it become an anti-pattern?
AmazonMicrosoftOracleRead →
Functional InterfacesMedium
Is there a real performance difference between a method reference and an equivalent lambda?
MicrosoftOracleGoogleRead →
Functional InterfacesMedium
When do you design a custom functional interface instead of reusing java.util.function?
AmazonMicrosoftDeloitteRead →
Advertisement
Google AdSense slot