What is the difference between statically typed and dynamically typed languages?

后端 未结 16 2022

I hear a lot that new programming languages are dynamically typed but what does it actually mean when we say a language is dynamically typed vs. statically typed?

16条回答
  •  无人共我
    2020-11-22 02:04

    Statically typed programming languages do type checking (i.e. the process of verifying and enforcing the constraints of types) at compile-time as opposed to run-time.

    Dynamically typed programming languages do type checking at run-time as opposed to compile-time.

    Examples of statically typed languages are :- Java, C, C++

    Examples of dynamically typed languages are :- Perl, Ruby, Python, PHP, JavaScript

提交回复
热议问题