DEV Community

Ligouri S Tittus
Ligouri S Tittus

Posted on

Java (Programming language):

🌍 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

  1. Very fast execution
  2. Direct hardware control
  3. Hard to write and understand
  4. Machine dependent
  5. 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

  1. Easy to learn βœ…
  2. English-like syntax βœ…
  3. Portable (Write once, run anywhere – Java) βœ…
  4. Needs compiler/interpreter ❗
  5. 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)