java

Execute the given Java source code as an interactive snippet, returning the result. This is equivalent to calling PolyglotContext.evaluate and selecting Java as source language with an interactive source.

Return

The result of the invocation.

Parameters

source

The Java snippet to be evaluated.