A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://docs.oracle.com/en/java/javase/17/docs/api/jdk.jshell/jdk/jshell/Snippet.html below:

Snippet (Java SE 17 & JDK 17)

Direct Known Subclasses:
ErroneousSnippet, ExpressionSnippet, PersistentSnippet, StatementSnippet
public abstract class Snippet extends Object

A Snippet represents a snippet of Java source code as passed to

JShell.eval(java.lang.String)

. It is associated only with the

JShell

instance that created it. An instance of Snippet (including its subclasses) is immutable: an access to any of its methods will always return the same result. For information about the current state of the snippet within the JShell state engine, query

JShell

passing the Snippet.

Because it is immutable, Snippet (and subclasses) is thread-safe.

Since:
9
See Also:

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4