The development of each programming language is based on a fact: there is a need to solve a problem that was not resolved by previous programming languages. Early programmers had to choose different programming languages, usually for various tasks, such as a specific language for a type of field. A certain language was sufficient to solve the problems of its field but was not able to solve the problems of other fields. For example, Fortran could have been used to write efficient programs for scientific problems, but it was not good for system code. Similarly, Basic was easy to understand but was not robust to write big programs; While the assembly language was powerful for writing efficient programs, but it was not easy to remember and execution.
Programming languages such as Cobol, Fortran do not have structural principles. They use the Goto statement to control the flow of the program. Therefore, programs using this type of code are made up of many jumps and conditional statements that make it difficult to understand.
Therefore, C was invented in 1970, to replace the assembly language and to create a structured, effective and high-level language. The development of C was the result of the development process started with BCPL by Dennis Ritchie. BCPL is an old language developed by Martin Richard. Ken Thompson developed a language called B, which was influenced by BCPL.
C is a processor-oriented programming language; it is easy to execute and understand. C became quite famous at that time because it was reliable, simple and easy to use.
Though C was a quite efficient and successful programming language, the complexity of the program was seeking more efficient language to solve problems. When we write a program in C, it has a limit, such as a maximum of 25000 lines of code, beyond which it can not handle the complexity. But writing and managing large programs was a demand at that time. So a new concept came.
C++ came with object-oriented programming features. C++ is the extension of C language which has been used extensively. It is a powerful modern language that includes the power and simplicity of C and the characteristics of OOP. C++ provides more functional software benefits than C.
C ++ with OOP became quite famous but then a new problem arose, to control the software on different machines, a separate compiler is required for that CPU. But building a C++ compiler was quite expensive. Therefore, an efficient and easy solution was needed, and this requirement became the reason for the creation of Java, which is a portable and platform-independent language.