What is the primary difference between Scala and Java in terms of syntax?
Scala and Java are very similar in syntax, both using the same basic object-oriented principles.
Thatâ€™s not quite right. Scala is more concise and introduces functional programming features, which differ from Java's approach.
Can you explain how Scala supports immutability and how that differs from Java's approach to mutable objects?