Scala

Scala is a statically typed JVM language that mixes OOP and functional features. Used in data infrastructure (e.g. Apache Spark) and services that want Java interop with stronger FP tools.

def greet(name: String): String = s"hello, $name"

@main def run(): Unit =
  println(greet("world"))

← Back to CS Glossary