1. It becomes JavaScript properties
  2. Java classes are used to avoid them
  3. Java classes & JavaScript properties
  4. None of the mentioned
4 views

1 Answers

Answer: Option 1

Rhino allows JavaScript code to query and set the static fields of Java classes and the instance fields of Java objects. Java classes often avoid defining public fields in favor of getter and setter methods. When getter and setter methods exist, Rhino exposes them as JavaScript properties.

4 views

Related Questions