Sail E0 Webinar
Question
What does Rhino do when the getter and setter methods exist?
Options:
A .  It becomes JavaScript properties
B .  Java classes are used to avoid them
C .  Both a and b
D .  None of the mentioned
Answer: Option A


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.



Was this answer helpful ?

Submit Solution

Your email address will not be published. Required fields are marked *

Latest Videos

Latest Test Papers