Java / Interface
Explain type inference in Java 8.
Type inference is a Java compiler's ability to look at each method invocation and corresponding declaration to determine the type argument that makes the invocation applicable. The inference algorithm determines the types of the arguments and, if available, the type that the result is being assigned, or returned. Finally, the inference algorithm tries to find the most specific type that works with all of the arguments.
More Related questions...