What is Scala?
In this page:
What is Scala?
Scala (short for "Scalable Language") is a modern programming language created by Martin Odersky and first released in 2004, designed to run on the Java Virtual Machine while unifying object-oriented and functional programming in one language.
Scala powers large-scale, data-intensive systems at companies like Twitter, LinkedIn, and Netflix, and is the language behind Apache Spark, the industry-standard engine for big data processing. Because it runs on the JVM, Scala code interoperates directly with existing Java libraries.
Example: What is Scala?
object Main extends App {
println("Hello, World!")
}
Login to try C/C++/Java/PHP code in the editor
- Thinking Scala is a scripting language only, when it is a compiled language that runs on the JVM.
- Assuming Scala cannot use Java code, when it can call Java libraries directly on the JVM.
- Expecting Scala code to look like Java line by line, and adding semicolons and
void, when Scala usesUnitand usually needs no semicolons.
Chapter Quiz — Complete all 8 topics to unlock
0/8 topics done
Complete these topics first: