What is Scala?

By Richa Tiwari|Updated : July 22nd, 2019

 

  • Scala is a general purpose programming language.
  • It supports object Oriented, Functional and Imperative programming approach.
  • It has become the modern multi-paradigm for programming.
  • It was created by “Martin Odersky” and it was first released in 2003.
  • The file extension of Scala source file may be either .scala or .sc.
  • One can create any type of application in a very less amount of time and code whether it is web-based, mobile based or desktop based application.
  • Companies previously using JAVA are now turning their work to Scala as it provides much more features than JAVA.
  • It also help them to increase their overall productivity,

Scala vs JAVA-

  • According to some programmers Scala is 20 times faster than JAVA.
  • Both of them runs on JVM.

Many features which are there in Scala over JAVA-

  • All types are objects.
  • Type inference.
  • Nested Functions.
  • Functions are objects.
  • Domain-specific language (DSL) support.
  • Concurrency support inspired by Erlang

Application of Scala-

  • Parallel batch processing
  • Concurrency and distributed application
  • Data analysis with Spark
  • AWS lambda expression
  • Web applications
  • Utilities and libraries

Please do comment if you want more such articles on new programming techniques. 

Thanks,
Team BYJU'S Exam Prep.

Comments

write a comment

Follow us for latest updates