#6. Type Inference | Generics In Java|

Sdílet
Vložit
  • čas přidán 2. 12. 2022
  • From Javadoc,
    Type inference is a Java compiler's ability to look at each method invocation and corresponding declaration to determine the type argument (or arguments) that make the invocation applicable. The inference algorithm determines the types of 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.
    Let's understand each and every point of the above definition in this video in as simple as possible words and examples.

Komentáře • 2