Introduction to Scala
David Venturi
Curriculum Manager, DataCamp
Scala is a general-purpose programming language providing support for functional programming and a strong static type system. Designed to be concise, many of Scala's design decisions aimed to address criticisms of Java.
Scala source code is intended to be compiled to Java bytecode, so that the resulting executable code runs on a Java virtual machine.
Scala combines object-oriented and functional programming in one concise, high-level language. Scala's static types help avoid bugs in complex applications, and its JVM and JavaScript runtimes let you build high-performance systems with easy access to huge ecosystems of libraries.
Scala combines object-oriented and functional programming
Scala combines object-oriented and functional programming
Scala combines object-oriented and functional programming
Scala is object-oriented
val sumA = 2 + 4
sumA: Int = 6
Scala combines object-oriented and functional programming
Scala is object-oriented
val sumA = 2.+(4)
sumA: Int = 6
Scala combines object-oriented and functional programming
Scala is functional
Scala combines object-oriented and functional programming
Scala is functional
Scala combines object-oriented and functional programming in one concise
Scala combines object-oriented and functional programming in one concise, high-level language.
Scala combines object-oriented and functional programming in one concise, high-level language. Scala's static types help avoid bugs in complex applications
Scala combines object-oriented and functional programming in one concise, high-level language. Scala's static types help avoid bugs in complex applications, and its JVM and JavaScript runtimes let you build high-performance systems with easy access to huge ecosystems of libraries.
$ scala
Welcome to Scala 2.12.7.
Type in expressions for evaluation. Or try :help.
scala>
$ scala
Welcome to Scala 2.12.7.
Type in expressions for evaluation. Or try :help.
scala> 2 + 3
res0: Int = 5
res0 * 2
res1: Int = 10
scala> println("Let's play Twenty-One!")
Let's play Twenty-One!
Introduction to Scala