InterviewSolution
Saved Bookmarks
| 1. |
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);I got this question by my school teacher while I was bunking the class.My doubt stems from Scripting Java with Rhino in chapter Server-Side and Client-Side Scripting of JavaScript |
|
Answer» CORRECT answer is (d) readUrl(url); Best 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. |
|