title: Nashorn vs Javascript vs ECMAScript
body: <p>Java8 provides Next-Generation JavaScript Engine as nashorn.
  We can get this engine with following code:</p>
  
  <pre><code>ScriptEngineManager engineManager = new ScriptEngineManager(); 
  ScriptEngine engine = engineManager.getEngineByName("nashorn");
  </code></pre>
  
  <p>But i found that <strong>javascript</strong> and <strong>ECMAScript</strong> are also valid parameters for getEngineByName()</p>
  
  <pre><code>ScriptEngine engine = engineManager.getEngineByName("javascript");
  ScriptEngine engine = engineManager.getEngineByName("ECMAScript");
  </code></pre>
  
  <p><strong>My queries are:</strong> </p>
  
  <ul>
  <li>What are the differences between Nashorn, JavaScript and ECMAScript engines?</li>
  <li>Do java provide other engines?  </li>
  <li>Which one is better to use?</li>
  </ul>