title: Is there any way to run MongoDB Server using Java programming?
body: <p>It can connect with database when we run the <strong><em>mongod</em></strong> server manually. But I want to run <strong><em>MongoDB server by Java code</em></strong>, so is there any way to do it? </p>
  
  <pre><code>Mongo mongo = new Mongo("localhost", 27017);
  DB db = mongo.getDB("@NEW_DB");
  </code></pre>