Static and Dynamic Language and strength type

Source: Internet
Author: User
Static Type Definition Language
A language with fixed data types during compilation. Most static type definition languages ensure this by requiring that their data types be declared before all variables are used. Java and C are static type definition languages.
Dynamic Type Definition Language
A language that determines the data type during running, opposite to the static type definition. VBScript and Python are dynamically defined because they determine the type of a variable when you assign a value to it for the first time.
Strongly typed language
A language that always enforces type definition. Java and Python are forced Type Definitions. You have an integer. If it is not explicitly converted, it cannot be treated as a string.
Weak Type Definition Language
A language that can be ignored, opposite to a strong type definition. VBScript is defined as a weak type. In VBScript, you can '12'And integer 3Connect to get a string '123'And you can think of it as an integer. 123, None of these require any display conversion.

So python is bothDynamic Type Definition Language(Because it does not use the display data type declaration), it isStrongly typed language(Because once a variable has a data type, it actually remains of this type ).

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.