C++ is not a platform independent language while Java is platform independent language.
C++ is not a platform independent language while Java is platform independent language.
The main differences are:
- Java does not support typedefs, defines, or a preprocessor
- Java supports classes, but does not support structures or unions
- Java does not support multiple inheritance
- Java does not support operator overloading
- Java does not support pointers
- Java does not support destructors, but rather, add the finalize() function
Please Turn OFF your ad blocker
- OR -
LOGIN to continue using GeekInterview website.
What are the differences between C++ and Java