Returns the Java class of the container referenced by $scalar
$scalar - The scalar to return the type of
A Java class object.
$long = 4L; $double = 3.5; $result = $long + $double; # what is the result? println("Type of result is: " . typeOf($result));
Type of result is: class sleep.engine.types.DoubleValue