 <p>The syntax as the following:</p> <pre><code>ObjectName obj=Class.forName("object name full name").newInstance(); </code></pre> <p>For example, you have class named Car, which is resided in com.toyota package. Then you can instantiate Car object using the following statement:</p> <pre><code>Car car=(Car)Class.forName("com.toyota.Car").newInstance(); </code></pre>