void sort(String s){ } void sort(Integer I){ } void sort(Object o){ } calling : sort(null) which function will be called?
Anonymous
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.
Check out your Company Bowl for anonymous work chats.