Java - The diamond syntax (<>)

Java Conceptuel Diagram

Java - The diamond syntax (<>)

About

The diamond syntax (<>) let the compiler infer the generic type parameters.

The diamond operator makes dealing with generics easier by avoiding repeating types when they can easily be inferred at compilation time.







Share this page:
Follow us:
Task Runner