title: java 1.6 I want to create java POJO class dynamically
body: <p>I want to create java POJO class dynamically</p>
  
  <p>Following is the requirment : </p>
  
  <p>I have a method, which takes in parameters classname and a map .The map key will be the primitive type and map value will be the variable</p>
  
  <pre><code>create Class(String ClassName, HashMap map) 
  {
  }
  </code></pre>
  
  <p>When this method is invoked,it should create a .java file with the specified name and create the POJO with the passed hashmap and store it at some location.</p>
  
  <p>Can you guys please help me with this.</p>
  
  <p>I hope I could present my question clearly.</p>
  
  <p>Thanks.</p>