Index | C++ | Java |
Platform-independent | C++ is platform-dependent. | Java is platform-independent. |
Goto | C++ Support the goto Statement. | Java Does not Support goto Statement. |
Multiple inheritance | C++ supports multiple inheritance. | Java doesn't support multiple inheritance through class. It can be achieved by using interface in Java. |
Pointers | C++ supports pointers. You can write a pointer program in C++. | Java supports pointer internally. However, you can't write the pointer program in java. |
Call by Value and Call by reference | C++ supports both call by value and call by reference. | Java supports call by value only. There is no call by reference in java. |
Thread Support | C++ doesn't have built-in support for threads. | Java has built-in thread support. |
Mainly Used for | C++ mainly used for system programming. | Java mainly used for Application programming. |
Operator Overloading | C++ support operator overloading. | Java does not support operator overloading. |
Structure and Union | C++ support structure and union. | Java does not support structure and union. |
Inheritance Tree | C++ always creates a new inheritance tree. |
Post Top Ad
Your Ad Spot
Sunday, September 5, 2021
Difference Between C++ and Java
Tags
Java Tutorial#
Share This
About Ashish Kumar
Java Tutorial
Tags:
Java Tutorial
Subscribe to:
Post Comments (Atom)
Post Top Ad
Your Ad Spot
Author Details
Ut wisi enim ad minim veniam, quis nostrud exerci tation ullamcorper suscipit lobortis nisl ut aliquip ex ea commodo consequat. Duis autem vel eum iriure dolor in hendrerit in vulputate velit esse molestie consequat.
No comments:
Post a Comment