According to Java specs, in case of overloading, compiler picks the most specific function. Obviously String class is more specific than Object class.
This video explains these things clearly which is very helpful to Java developer.
On this page of the site you can watch the video online Java tricky program-1 with a duration of hours minute second in good quality, which was uploaded by the user TechMeDevoted 27 February 2017, share the link with friends and acquaintances, this video has already been watched 182 times on youtube and it was liked by 2 viewers. Enjoy your viewing!