Persistent Systems Interview Question

Exaplain what happens in backend for below statement. WebDriver driver=new ChromeDriver(); asked to write down full code for cucumber feature file and step definition for rest api scenario.