5.
Which is a useful way to try out small and simple Rhino programs and one-liners?

Starting an interative shell

Starting a one to one shell

Creating a thread to do simple programs

None of the mentioned

6.
Which is a more formal way of importing packages and classes as JavaScript objects?

Import(java.util.*);

ImportClass(java.util.*);

Import.Class(java.util.*);

Class.import(java.util.*);

7.
Consider the following code snippet:

var f = new java.io.File(“/tmp/test”);
var out = new java.io.FileWriter(f);
out instanceof java.io.Reader

What will be the output for the above code snippet?

Error

True

Exception

False

8.
What does Rhino do when the getter and setter methods exist?

It becomes JavaScript properties

Java classes are used to avoid them

Java classes & JavaScript properties

None of the mentioned

10.
The new Java arrays can be created into a JavaScript programs using which of the following classes?

Java.Array

Java.lang.*

Java.lang.Array

Java.lang.reflect.Array

0Shares
0
Scroll to Top