0 votes
in Scala Constructs by

Is Scala Statically-Typed Language? What is Statically-Typed Language and What is Dynamically-Typed Language? What is the difference between statically typed and dynamically typed languages?

1 Answer

0 votes
by

Yes, Scala is a Statically-Typed Language. Statically-Typed Language means that Type checking is done at compile-time by compiler, not at run-time. The main Advantage of these kinds of Languages is: As a Developer, we should care about writing right code to avoid all compile-time errors. As Compiler checks many of the errors at compile-time, we don’t get much issues or bugs at run-time. Examples:- Java, Scala, C, C++, Haskell etc. Dynamically-Typed Language means that Type checking is done at run-time, not at compile-time by compiler. As a compiler won’t check any type checking at compile-time, We can expect more run-time issues or bugs. Example:- Groovy, JavaScript, Ruby, Python, Smalltalk etc.

Related questions

0 votes
asked Apr 21, 2022 in Scala Constructs by sharadyadav1986
+1 vote
asked Sep 12, 2022 in Scala Constructs by Robin
...