title: What is the difference between ChromeDriver and WebDriver in selenium?
body: <p>If we create :</p>
  
  <pre><code>ChromeDriver driver=new ChromeDriver();
  </code></pre>
  
  <p>chrome driver methods will be  executed.</p>
  
  <p>And if we create :</p>
  
  <pre><code>WebDriver driver=new ChromeDriver();
  </code></pre>
  
  <p>again <code>ChromeDriver</code> methods are executed [as per method overriding].</p>
  
  <p>Then why we write latter one only while executing?</p>