Java will always try to use the most specific version of a method.
Since the call
t.doStuff(null);
is applicable to both methods
t.doStuff(Object o)
t.doStuff(String o)
Java will choose the most specific method description, which is
t.doStuff(String o)