Java - Static utility

> Procedural Languages > Java

1 - About

Static utility methods are particularly good candidates for generification.

Writing generic methods is similar to writing generic types.

3 - Example

  • The “algorithm” methods in Collections (such as binarySearch and sort)