String[] foo = {"one","two", "three"};
Arrays.sort(foo, (a,b) -> a.compareTo(b));
And
String[] foo = {"one","two", "three"};
Arrays.sort(foo, String::compareTo);
are equivalent.
Why can I reference compareTo via String when compareTo is an instance method?