Scala Tutorial | Scala Variables Example
The Scala stands for "Scalable Language" is a pure object oriented with fully supported functional programming language. Scala is concise and very much comparable with Java programming language. The origin of Scala is mix of many languages like Java, C#, C++, Haskell etc. Scala runs on JVM(Java Virtual Machine), Scala source code compiled into byte code similar to Java, you can easily mix Java code inside Scala or you can use Java libraries inside you Scala project. Although Scala is very much similar to Java but still it has some differences which makes it more demanding in a very short period of time unlike other languages. Here is detailed differences between Scala and Java Scala Vs Java In this tutorial, I am going to show you What is Scala Variables and different types of Variables in Scala like var, val, lazy with example. In Scala variables comes in three different variety- var val lazy val var A variable with mutable state or you can say mutable variab...