Menu

Difference Between Static & Dynamic Programming Languages?

Difference between static and dynamic programming languages

Sharing is caring!

Static and Dynamic Programming Languages

As we know that there are two types of programming language:

  1. Dynamically typed programming language
  2. Statically typed Programming Language

Statically Programming Language:

These type of Programming language are compiler based programming.  In this type of programming language we have to be define the type of the data type that we are going to be used in our code. As we all know that statically typed programming language are compiler based so that the type checking occurs during the compilation of code.  Once we have define the variable type, we cannot change that variable into another data type.

Ex:

In java:

int a= 23;

String a=”shweta”;              
Error will be occur        

Statically Programming Language

       In C/C++ Programming:

                            int a= 23;

                                char a[7]=”Shweta”

Error will be occur

Statically Programming Language

       In C/C++ Programming

Similarly, there are some statically typed programming language are:
ABC, BCPL, FORTRAN, Pascal, Perl, C/C++, JAVA, C#, Scala, F# …… etc.

Dynamically Programming Language:

These type of Programming language are Interpreter based Programming Language. There is no any specific scenario that we have to specify the type of the variable before using in the code. We can use one variable for multiple task by overriding the value define in the code

Ex:  In python Programming

python Programming

In Java Script Programming

Java Script Programming

 Java Script Programming

In Interpreter it takes the value and convert directly into the object of that data type to perform the operation and the result is performance goes down poor of the interpreted programming language.
Ex- Python, Java Script, Lisp, small-talk, Perl….. etc.

Leave a Reply

Your email address will not be published. Required fields are marked *

shares