Posts

Static vs Dynamic languages

Image
 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 d...

Types of Languages

 types of languages :-  1)Procedual  2)Functional 3)Object Oriented 1)Procedual languages ka matlab hota haa  a series of well structure steps and produce to compose a program  contain karta ha ake systematic order of statements and command to complete the task. 2)Functional Languages ise mae hum functions ka use karta haa  we can reuse again and again it is a  program only in pure function jo ke never modify variables, but only create new one as an output use hum asa jagha karta haa jaha pae we have to perform lots of different operations on the same set of data  first class function. first class function ka matlab ja par bhi ake function ko dusra function mae reassign kara toa first class function. a = 10; c = a; 3)Object oriented : -  the code file and data combine together to form a object  revolve around objects code + data = object developed to make it easier to develop, debug, reuse , and maintains software