Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community!

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

Java Java Data Structures Organizing Data Arrays

What is the difference between jshell and java-repl? When are you using which tool?

In the videos before, jshell was used, now you only talk about java-repl. I want to know, what is the difference and when to use which tool.

1 Answer

jshell is an official java REPL included with the JDK. java-repl is another REPL but from a third party source. They have different syntax for commands like :load for java-repl and /open for jshell but you should be able to do most of things that we do in TreeHouse with either tool. Personally, I just follow along with whatever REPL the teacher is using.