|
|
|
|
|
by elmarschraml
3997 days ago
|
|
If you're looking for a REPL for Java, try the Groovy shell (comes standard with an install of Groovy). Meant, as the name implies, for Groovy, but since Java is a subset of Groovy, works fine for any Java code, too. It's great for quickly trying out an API or library. Also makes it easy to just drop a bunch of jar files onto the classpath. |
|
Java is not a subset of Groovy. Some syntax valid in both will behave differently in each, e.g. default visibility, and how == behaves.