Java service to convert string to object

Can anybody help me with the java code to convert string to object?
I have already searched some of the forums, but they were mentioning about converting the date string to object.
But i need to convert a normal string to object.

Krithiga M

A String is an Object.
Can you explain why you want to do this ?

Did you mean convert String to bytes? you can use pub.string:stringToBytes service.