Scala provides many advantages while writing a code, a few of them are:-

A program written in scala requires less code than a similar program written in java.

Since scala supports both object-oriented and functional programming it is the right choice for web development.

Scala is highly available which makes it ideal to build fault-tolerant and high available systems.

Scala is the preferred choice for data analytics when apache spark is involved.

you can use the scala to execute the java codes as both runs on JVM