title: how to convert a String to Object in JAVA
body: <p>I am retrieving a <code>String</code> variable from the <code>Database</code> and storing in a variable.</p>
  
  <pre><code>String name = "Peter"     ---- &gt;(retrieved from the database)
  </code></pre>
  
  <p>I already have a class called <code>Peter</code>.  I need to initialize the class using the retrieved variable <code>name</code>. </p>
  
  <p>Assume that ,whatever <code>String</code> is retrieved from the database , I have a class defined for it in my package...</p>
  
  <p>Is there a way to create a <code>Object</code> for the <code>String</code> I retrieve from the <code>Database</code>?</p>