What is the difference between
Object foo = \"something\"; String bar = String.valueOf(foo);
and
Object foo = \"something\"
in String.valueOf(); string as work typecasting all the argument passed in valueof() method convert in String and just like integer.string() convert integer into string only