0 votes
in JAVA by
What does the Java Diamond Operator do?

1 Answer

0 votes
by

With Java, the angle bracket was transformed into the diamond operator, which aids in type inference by preventing the need to repeat the type on the right-hand side of the equation. By doing this, programming effort and clutter are minimised without affecting code readability.

Related questions

0 votes
asked Apr 30, 2021 in JAVA by rajeshsharma
+2 votes
asked Jun 17, 2019 in JAVA by reins.robin
...