void sort(String s){ } void sort(Integer I){ } void sort(Object o){ } calling : sort(null) which function will be called?
Anónimo
Void Sort(String s) will be called , the reason is in java at run time method overloading goes with the most specific case and as we know null is an instance of string having length as 0.