Static vs Dynamic languages

 Static languages :- japar bhi datatype dena padta haa like java (int a, String b)

  • perform type checking at compile time 
  • Error will show at compile time 
  • Declare data type before we use it   (int, String , Float a ) like in java 
  • More control 

Dynamic languages : -  jaha par bhi data types mention karna ka jarut an pada like in javascript (var a = 10)

  • Perform type checking at runtime 
  • Error might not show till program is run 
  • No need to declear data type  of variables 
  • save time while writing code but might give error  at runtime
* I have to read about runtime error and compile-time error 

Memory management 






variable refrence and function ka memory stack mae save hota haa vahi par 
value or we say object  heap memory mae save hoat haa


variable a  reference dea raha haa object 10  ko 





Garbage collection :- jab kisi object ka name an ho toa ya garbage collection apena ape remove kar data haa usea memory ko 































Comments

Popular posts from this blog

Scoping and Variablelength Arruguments

Types of Languages