Site icon Technology and Trends

Scala Programming Language

The word “Scala” comes from a combination of “scalable” and “language”. It means that it is designed to grow with the demand of users. It was designed and developed by Martin Odersky.

Furthermore, it is a Multi-Paradigm Programming Language, which supports both Object-Oriented and Functional Programming concepts. It is a strong and statically typed system, which means that all types are checked at compile time by the Scala compiler. Scala Source code is compiled into Java byte code so that its resulting executable code runs on a Java Virtual Machine(JVM).

Functional Programming (FP) Concepts in Scala

It is a programming style that uses functions as a building block and avoids mutable variables, loops, and other imperative control structures.

It has the below properties.

Create a runnable application in Scala

There are two ways of creating runnable applications in

object ScalaApplication {

def main(args:Array[String]) = println(" Hello World")
}
object ScalaApplication extends App {
println("Hello World)
}

Exit mobile version