March 4, 2020

Scala Programming Language Intro

  • Scala stands for "scalable language" and is a general-purpose programming language providing support for functional programming (multi-paradigm)
  • also object-oriented
  • Designed to be concise
  • Scala is the 25th most popular programming language in February 2020 according to the TIOBE index
  • License: Apache License 2.0
  • File extensions: .scala, .sc
  • First appeared January 20, 2004
  • Hello World example:
 object HelloWorld extends App {
println("Hello, World!")
  • Compile with:
$ scalac HelloWorld.scala
  • Runs with:
$ scala HelloWorld
  • var keyword: mutable variable
var myVar : String = "Foo"
  • val keyword: immutable variable
val myVal : String = "Foo"
  • Syntax for variable:
val or val VariableName : DataType = [Initial Value]

Written by tyler775

Log in to Like
Log In to Favorite
Share on Facebook
Share on Twitter

You must be signed in to post a comment!