Uses of Class javax.script.CompiledScript (Java Platform SE 8 )
Date: 2026-03-29

## Uses of Class
javax.script.CompiledScript

- Packages that use CompiledScript
  Package | Description
  --- | ---
  javax.script | The scripting API consists of interfaces and classes that define Java TM Scripting Engines and provides a framework for their use in Java applications.

- - ### Uses of CompiledScript in javax.script

    Methods in javax.script that return CompiledScript
    Modifier and Type | Method and Description
    --- | ---
    `CompiledScript` | Compilable.`compile(Reader script)` Compiles the script (source read from `Reader`) for later execution.
    `CompiledScript` | Compilable.`compile(String script)` Compiles the script (source represented as a `String`) for later execution.

Submit a bug or feature
For further API reference and developer documentation, see Java SE Documentation. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples.
Copyright © 1993, 2026, Oracle and/or its affiliates. All rights reserved. Use is subject to license terms. Also see the documentation redistribution policy.