Scala is a programming language and full form is Scalable language. It first released in 2003.
Scala is object-oriented and functional language. Many companies that depend on Java switching to Scala to enhance their development productivity, stability and reliablity.
Scala is executed by the JVM(Java Virtual Machine) that means its compiled into Java Byte code.
Scala can execute Java Code because we can use all Java classes here.
There are some differences like here we have nested functions, closures, Type inference, Traits etc.
It can use anywhere usually enterprise web applications.
We use mostly 2 frameworks
1. Lift Go here
2. Play framework Go Here
Below is the command to set up the updated Scala in ubuntu
sudo apt-get remove scala-library scala
sudo wget www.scala-lang.org/files/archive/scala-2.10.4.deb
sudo dpkg -i scala-2.10.4.deb
sudo apt-get update
sudo apt-get install scala
wget http://scalasbt.artifactoryonline.com/scalasbt/sbt-native-packages/org/scala-sbt/sbt/0.12.4/sbt.deb
sudo dpkg -i sbt.deb
sudo apt-get update
sudo apt-get install sbt
After that just check it by this command
scala -version
0 Comment(s)