C++ is object based language while Java is a pure object oriented language.
C++ makes use of pointers to address memory locations while Java doesn't allows pointers, rather it manages all the memory handling tasks by itself, thus freeing the user from memory handling complexities and provides security.
In C++, if value of one variable is changed then the change in value of that variable is reflected in other areas also where that variable is used, whereas, Java ensures that if value of one variable has been changed in one area then in other area the change is not reflected.
C++ is confined to a particular system and thus the object code generated by the compiler of C++ can't be used on other machines, whereas, Java is a portable language that allows execution of the code on any machine where JVM (Java Virtual Machine) is installed.
C++ is not a secure language and may contain malicious code, whereas, Java is a secure language that uses a Bytecode verifier to make sure that code doesn't contain malicious code within it.
C++ can't be used on distributed systems and also, it can't be used over the web, whereas, Java can be run on distributed systems and over the web.
In C++ we first include a preprocessor and then proceed to the main function, whereas, in Java no such thing is done, everything is done within the class.
C++ supports multiple inheritance, whereas, java doesn't support multiple inheritance as it leads to ambiguity.
C++ defines GOTO keyword and also supports its usage, whereas, Java has a GOTO keyword but doesn't allow its usage.
Operating overloading is a prominent feature of C++, whereas, Java doesn't support operator overloading.
In C++ garbage collection is done manually, whereas, in Java garbage collection is done automatically.
Java has built-in multithreading process, whereas, C++ has no such process.
In Java you can't have "inline" methods but as an alternative option we have "final" keyword.
In Java you can't specify public, private and protected inheritance as in C++ and the overridden methods in a derived class cannot change the access of the method in the base class.
Published by Harsh Gupta - Tech Writer
I am a part time freelancer and writing is my hobby Some of my websites: http://www.GenericArticles.com http://www.JailBreakingiPhone.com View profile
- Free Software OnlineThere is software that you can order online that is completely free to download or software where all you have to do is pay shipping and handling.
Java Software: A Wonderful Robust Language, Able to Do Important TasksFrom your future toaster to your car outside, Java software is creeping into everyday life like a unstoppable spider, invading the frig, the MP3 player, the TV, even your microw...
Bridging the Gap Between Java and XMLSimplicity is a hallmark of the Extensible Markup Language (XML). XML is a text-based standard through which complicated data structures can be expressed in a far more elementar...- Java Programming Language Tutorial: From Oak to JavaThis article covers the main points of Java, as a language.
- Object Oriented Programming - The Growing NeedIn today's competitive world, the need of the hour is to develop simple and speedy solutions that can be instantly applied to varied requirements.
- E-commerce Application Solutions Utilizing Microsoft's .NET
- Shopping for Women's Plus Size Clothing
- Critical Essay of Gender Differences and Studies of Rape in Tribal Societies
- A Short Introduction to Java Programming Language
- Your First Java Program
- PHP Object Oriented Programming OOP for Beginners
- VirtualNes.com Is a Fun Place to Play Even More Vintage Nintendo Games
- C++ is object based language while Java is a pure object oriented language.
- C++ is not a secure language and may contain malicious code, whereas, Java is a secure language.



