Introduction to programming language

 What is programming language:

A language used to write programs to communicate with system is programming language.

Just like natural language ( language that we used to communicate among us) which has grammatical rules, programming languages have syntax rules.


We have different types of programming language

Eg:

1.High level and low level language.

High level language consists of letters and numbers from natural language written with syntax rules and it gets converted to machine understandable language by some tool.

Low level languages are language which machine can directly understand.

Low level language  are hard to read, write and maintain by humans so we write programs in high level language and then convert it to machine understandable language using some tools.


2. Compiled language and interpreted language.

In compiled language we use compiler to convert source code into machine understandable language first and then start executing it but in interpreted language. Source code is scanned line by line and then converted to machine understandable code gets executed and then next line is picked.


Likewise we have different categories of programming languages like structural, procedural, object oriented etc.


Different number system:

We know computer is an electronic device consists of circuits which can be Powered on or off so there is two distinct state of any circuits 1 and 0 or power on or off. This system where we have only two digits 0 and 1 is called binary system.

Similarly the system we use has 10 different digits 0 - 9 and it is called decimal system.

We have two more system octal with 8 distinct digits 0-7 and hexadecimal with 16 digits 0-9 and A,B,C,D,E,F.


Learn more about programming languages and number system and how to convert from one system to other in below video.

Also learn to write first java program to print hello world: 








Comments

Popular posts from this blog

Tic Tac Toe game using HTML and JavaScript

Environment Setup | Install eclipse, notepad plus plus and JDK | Java programming course