π Why Do We Need Language?
How animals and humans even plants needs to communicate to fulfill their needs so they uses LANGUAGE.This is the same concept for programming language also where in the real life we uses voices as a medium but in the programming language we are going to use the computer as a medium .π» Computers donβt understand human language.
They only understand machine language (0s and 1s).
Real time examples :
π€ Human to Human Communication (Same Language)
HUMAN(english) ------> HUMAN(english) {DON'T need a translator}
[same language]
|
|
COMPUTER(binary) ------> COMPUTER(binary) {DON'T need a translator}
[same language]
|
|
JAVA PROGRAM -----> JAVA COMPILER {DON'T need a translator}
[Same Language]
BINARY--->(0&1) computer just understand 0's and 1's only.
π Human to Human Communication (Different Language β Needs Translator)
HUMAN(english) ------> HUMAN(french) {Needs a translator}
[different language]
|
|
π» Human to Computer Communication
HUMAN(english) ------> COMPUTER(binary) {Needs a translator}
[different language]
|
|
JAVA PROGRAM -----> Computer (Machine Code)
[Different Language β Needs Compiler]
ποΈ Two Types of Programming Languages
- Low level language
- High level language
1)Low level language:
π A language that is close to the computer hardware
π Computer understands it directly or almost directly
Types of Low-Level Languages:
- Machine Language (Binary β 0 & 1)
- Assembly Language
πΉ Features of Low-Level Language
- Very fast execution
- Direct hardware control
- Hard to write and understand
- Machine dependent
- Less portable
2)High level language:
π A language that is close to human language
π Easy for humans to read and write
Examples:
Java
Python
C++
πΉ Features of High-Level Language
- Easy to learn β
- English-like syntax β
- Portable (Write once, run anywhere β Java) β
- Needs compiler/interpreter β
- Slower than low-level (slightly)
This is enough for the beginners next we move to the programming language topics based on JAVA and later we can compare with other languages. Why we move π From PlankalkΓΌl to Java?.
Answer if you know :
1οΈβ£ Why do computers need programming languages if they only understand binary (0s and 1s)?
2οΈβ£ What is the role of a compiler in communication between a Java program and a computer?
3οΈβ£ What is the difference between same-language communication and different-language communication in programming?
4οΈβ£ What are the key differences between low-level language and high-level language?
5οΈβ£ Why did programming languages evolve from early languages like PlankalkΓΌl to modern languages like Java?

Top comments (0)