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

后端 未结 16 2205

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:14

    Statically Typed

    The types are checked before run-time so mistakes can be caught earlier.

    Examples = c++

    Dynamically Typed

    The types are checked during execution.

    Examples = Python

提交回复
热议问题