Selenium remote WebDriver issue
<p>I am trying to do parallel execution using Selenium in my machine. I have configured hub and node successfully. But in my code, I am getting an error at remote web driver initialization.</p>

<p>My code:</p>

<pre><code> package com.selenium.gautham;
 import org.openqa.selenium.Platform;
 import org.openqa.selenium.WebDriver;
 import org.openqa.selenium.chrome.ChromeDriver;
 import org.openqa.selenium.firefox.FirefoxDriver;
 import org.openqa.selenium.ie.InternetExplorerDriver;
 import org.openqa.selenium.remote.DesiredCapabilities;
 import org.openqa.selenium.remote.RemoteWebDriver;
 import org.testng.annotations.Test;

public class test {
 @Test
    public static void sample()
    {
    DesiredCapabilities cap =DesiredCapabilities.internetExplorer();
    cap.setBrowserName("ie");
    cap.setPlatform(Platform.WINDOWS);
    RemoteWebDriver driver =RemoteWebDriver(new       URL("http://localhost:4444/wb/hub"),cap);
    driver.get(url);
    }}
</code></pre>

<p>I'm getting this error:</p>

<blockquote>
  <p>The constructor RemoteWebDriver(URL, DesiredCapabilities) is undefined</p>
</blockquote>

<p>Where did I do wrong?</p>

<p><a href="https://i.stack.imgur.com/dP6lr.png" rel="nofollow noreferrer">Screenshot of Code</a></p>