String class provides us with the method String.valueOf(some stuff) that basically converts "some stuff" into a string..
But we can also concatenate "some stuff" with an empty String ("").
Both these methods result in a String representation of an object(or other data type) so my question is what is the difference between the two, advantages of one over the other, disadvantages of one over the other and which method do you guys usually use when forced to convert something to a String..
darek9576 0 Newbie Poster
BestJewSinceJC 700 Posting Maven
javaAddict 900 Nearly a Senior Poster Team Colleague Featured Poster
BestJewSinceJC 700 Posting Maven
javaAddict 900 Nearly a Senior Poster Team Colleague Featured Poster
BestJewSinceJC 700 Posting Maven
javaAddict 900 Nearly a Senior Poster Team Colleague Featured Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.