1.

Which class provides an interface for invoking JavaScript methods and examining JavaScript properties?(a) ScriptObject(b) JSObject(c) JavaObject(d) JobjectThe question was posed to me in a national level competition.This interesting question is from Comparison of Core JavaScript versus Frameworks in portion Caching, Debugging and Animation of JavaScript

Answer»

Correct OPTION is (b) JSObject

Explanation: JSObject is the type of JavaScript objects in the JSAPI. When a JavaScript object is passed or returned to Java CODE, it is wrapped in an instance of JSObject. When a JSObject instance is passed to the JavaScript engine, it is unwrapped back to its original JavaScript object. The JSObject class PROVIDES a way to invoke JavaScript METHODS and EXAMINE JavaScript properties.



Discussion

No Comment Found

Related InterviewSolutions