The following syntax can be used to launch the browser corresponding to the system’s operating system:
WebDriver driver = new FirefoxDriver();
Or
WebDriver driver = new InternetExplorerDriver();
Or
WebDriver driver = new ChromeDriver();