Method type parameters may shadow class type parameters. Static methods cannot reference class type parameters. Comparator.naturalOrder() resolves to Comparator<Object> because the type parameter T for Comparator is being used to determine the type erasure.

Method type parameters may shadow class type parameters. Static methods cannot reference class type parameters.
Comparator.naturalOrder()resolves toComparator<Object>because the type parameterTfor Comparator is being used to determine the type erasure.