The RC server also bundles Selenium Core , and automatically loads it into the browser.
we know that selenium core is mainly composed of javascript. it acts as the core for rc server.
with the picture illustrated above, we can get clearer about the architecture of selenium, you see where the selenium core is and remote control server locates.
HtmlUnit isn’t confined to just Java. Selenium makes accessing HtmlUnit easy from any language.