Register Now

Login

Lost Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Which of the following reads the textual contents of a URL and returns as a string?

a) spawn(f);
b) load(filename,…);
c) readFile(file);
d) readUrl(url);

Answer: d
Explanation: Rhino defines a handful of important global functions that are not part of core JavaScript in which readUrl(url) reads the textual contents of a URL and return as a string.

Join The Discussion