![]() |
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. |
No comments:
Post a Comment