Programming language

A programming language mainly consists of a set of instructions to perform any specific task. It is basically the logic that one writes to provide detailed instructions, which then the compiler compiles into machine language that can be understood by the computer. The top 10 programming languages include Javascript, Java, Python, PHP, C++, C#, Typescript, Shell, C, Ruby.

The two most commonly used programming languages are procedural programming and object-oriented programming –

Procedural ProgrammingObject Oriented Programming
A program is divided into small parts known as functions.A program is divided into small parts known as objects.
It follows the top-down approach.It follows the bottom-up approach.
Data hiding is not possible, so it is a less secure approach.Data hiding is possible, so it is a more secure approach.
Adding new data and function is not as easy as the whole program needs to be revised.New data and functions can be created easily with existing objects.
Examples include C, Pascal, Basic, etc.Examples include C++, Java, Python, etc.