Examveda
Examveda

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

A. java.Array

B. java.lang.*

C. java.lang.Array

D. java.lang.reflect.Array

Answer: Option D

Solution(By Examveda Team)

There is no natural JavaScript syntax that Rhino can extend to allow JavaScript programs to create new Java arrays, so you have to do that using the java.lang.reflect.Array class.

Join The Discussion

Related Questions on Server Side and Client Side Scripting