top button
Flag Notify
    Connect to us
      Site Registration

Site Registration

What is REPL in Scala? What is the use of Scala’s REPL?

+1 vote
480 views

What is REPL in Scala? What is the use of Scala’s REPL? How to access Scala REPL from CMD Prompt?

posted Oct 7, 2016 by Joy Nelson

Share this question
Facebook Share Button Twitter Share Button LinkedIn Share Button

1 Answer

0 votes

REPL stands for Read-Evaluate-Print Loop. We can pronounce it as ‘ripple’. In Scala, REPL is acts as an Interpreter to execute Scala code from command prompt. That’s why REPL is also known as Scala CLI(Command Line Interface) or Scala command-line shell.

The main purpose of REPL is that to develop and test small snippets of Scala code for practice purpose. It is very useful for Scala Beginners to practice basic programs.

We can access REPL by using “scala” command. When we type “scala” command at CMD Prompt, we will get REPL shell where we can type and execute scala code.

D:\> scala

scala>
answer Oct 20, 2016 by Karthick.c
Similar Questions
+1 vote

What is Unit in Scala? What is the difference between Java’s void and Scala’s Unit?

0 votes

What is the equivalent construct of Scala’s Option in Java SE 8? What is the use of Option in Scala?

...