passing on the resulting Java object as first argument.
The In the following example writes , 256 bytes are written to the file {{Code|output.txt}}.First, a new {{Code|FileWriter}} instance is created, and its{{Code|write()}} function is called in the next step.The {{Code|java:}} prefix is omitted hereinthe URI:
<pre class="brush:xquery">declare namespace fw = "java.io.FileWriter";