Static Data type Languages:
- Variables are judged at compile time.
- Explicitly type declarations are required before hand.
- Values are static types which can't be altered once set.
- Produces more optimized code with the compile time performance check.
- C , C++ , JAVA , GO
string language_type;
language_type = "static"
language_type = 1
Dynamic Data type Languages:
- Variables are evaluated at runtime.
- No need to declare the data type before hand.
- Values are dynamic and can be altered with their types.
- Reduces extra efforts but in the end is less optimized as the code is prone to runtime errors.
- PHP , Perl , Python , JavaScript
var language_type;
language_type = "dynamic"
language_type = true
Top comments (0)