What is Java?
Java was developed in June 1991 by James Gosling. To know what is java then please read the following.
This language is the:
- High-level,
- Object-oriented,
- Robust & secure,
- Platform-independent,
- High Performance,
- Multi threaded, and
- Portable programming language.
Following table shows the some difference between C++ and Java:
| Basis | C++ | Java |
| Platform | Dependent | Independent |
| Main Use | System and application programming | Application programming. |
| Goto Statement | Supports Goto statement | Does not support Goto statement |
| Operator Overloading | Supports operator Overloading | Does not support operator overloading |
| Pointers | Programmer can write pointer programs in C++ | Programmer cannot write pointer programs in C++ but java supports pointer internally. |
| Multiple Inheritance | Supports Multiple inheritance | Java does not supports inheritance but programmer can achieve multiple inheritance using ‘interface’. |
| Thread | No built-in supports for threads but can implement using third party libraries | Java has built-in thread support. |
| Virtual Keywords | Support | Not support |
| Object Oriented | C++ is an Object Oriented language but single root hierarchy in not possible in C++ | Except fundamentals types, everything in java is an object. Java is also an Object Oriented language. |
Must Read – Which programming language we should learn in 2021?
