System.setProperty() in selenium : //In selenium, why do we add System.setProperty("webdriver.chrome.driver", "E://chromedriver.exe"); within static{} ?
    

    public class Demo{
    static{
    System.setProperty("webdriver.chrome.driver", "E://chromedriver.exe");
    }
      public static void main(String[] args) {
            WebDriver driver = new ChromeDriver();              
            driver.get("http://www.google.com");
        
        }
    }

