Java could do this always, as it's a compiled language (the important thing here is interactivity vs. compilation, not JVM vs. native).
So I'd say that Java can do "this" since recently (JDK 9 in 2017) via JShell (I wouldn't count BeanShell or Groovy), i.e. it always had the compiler part but added the interpreter.
Although its usage is still quite rare, whereas the blog post would suggest a different pattern.
So I'd say that Java can do "this" since recently (JDK 9 in 2017) via JShell (I wouldn't count BeanShell or Groovy), i.e. it always had the compiler part but added the interpreter.
Although its usage is still quite rare, whereas the blog post would suggest a different pattern.