Just like Selenium IDE, WebDriver uses the same set of locating strategies for specifying location of a particular web element.
Since, we are using WebDriver with java; each locating strategy has its own command in Java to locate the web elements.
A list of Locating Strategies used in WebDriver: