Powered by Blogger.

Difference Between C++ and Java



Difference Between C++ and Java

Here we discuss some important Difference Between Java and C++ | Difference Between C++ and Java. Both languages are Object Oriented Programming Language.

Difference Between C++ and Java

Some Important Difference Between C++ and Java

  • Java have garbage collector for memory management.
  • Java supports classes, but does not support structures or unions.
  • Java does not support typedefs, defines, or a preprocessor.
  • Java does not support enums. But C++ Have enums.
  • Java does not support default arguments. C++ support default Arguments.
  • There is no goto statement in Java. 
  • Java does not support pointers. C++ support Pointer concept.
  • Java support automatic garbage collection. It does not support destructors as C++ does.
  • Java does not support multiple inheritance.  C++ support multiple inheritance.
  • Java does not support default arguments like C++. 
  • Java has method overloading, but no operator overloading just like c++.
  • Java does not support unsigned integer. C++ support this.





facebook
google-plus
twitter
pinterest

3 comments

HTML Tutorial

images

About Sitesbay

This blog is related to Java Tutorial, C++ Tutorial, C Tutorial, Online Earning tips and more in very simple and easy way. Here i will try to give complete idea related to all new technology.

Java Tutorial

Java is Object oriented programming language, It is more secure and high performance language.

C++ Tutorial

C++ is also Object oriented programming language, It is more simple and easy to learn.

 
https://sitesbay.blogspot.com/?utm_medium=d2898efa59afcc0bc411921036e22b767ca37b09