Sno. | C++ | Java |
1. | It is Platform dependent. | It is Platform Independent. |
2. | It is used for system Programming. | It is used for Application Programming. |
3. | It supports the goto statement. | It does not support the goto statement. |
4. | It supports multiple inheritance. | It does not support multiple inheritance but it can be achieved by interfaces. |
5. | It supports operator overloading. | It does not support operator overloading. |
6. | It supports pointer. | It does not support pointer. |
7. | It uses a compiler. | It uses compiler and interpreter. |
8. | It supports call by value and call by reference. | It supports only call by value. |
9. | Memory management is done using a pointer. | Memory management is done by the system. |
10. | Runtime error detection mechanism is the responsibility of the programmer. | Runtime error detection mechanism is the responsibility of the system. |
11. | Libraries have low-level functions | Libraries have high-level functions. |
12. | It Allows procedural programming as well as object-oriented programming. | It allows only the object-oriented programming model. |
13. | It hasa scope resolution operator (: :) | It does not have a scope resolution operator (: :) |
14. | It supports Points, structure, and union. | It supports Threads and interfaces. |
15. | It has new and delete keyword for object management | It has automatic garbage collection for object management. |
16. | It has destructors. | It does not have destructors. |
17. | It supports Native unsigned arithmetic. | It does not support Native unsigned arithmetic. |
0 Comments