The main difference between c++ and java is that "C++ does
not allow persistence because it does not support database
connection while Java allows persistence because it
supports database connection."
the main difference between c++ and java is that java is
consistent and it is a dynamic model.it is compact and
portable binary code while c++ is not. and most important
difference is the it has safe and secure execution
environment.
Both are Object Oriented Programming, But Java design to
support the web applications, GUI programming is easy with
java, Java does not require third party package(header file
in C++) to connect Database, Java is Platform independent
where as C++ is platform dependent.
java is totaly Encapsulated because every thing with in a
class...i c++ main remains out of class but in case of java
its inside the class...................
Java is a plate form independent Language but c++ is not.
Java doesn't support multiple inheritance but C++ do.
Java is more secure and robust than c++.
In java we use "applets" and "swing" components to design web applications which are user friendly. where as in c++ we have no such components to develop a web applications,which are user friendly.
You can say as java is the advance version of the C++.You
can made differences between this two because java do some
modification in the C++ and released it.So there are 6
differenes between java and c++.these are
1-Java does not support predessor.
2-Java doesn't contain any data types such as enum,
struct,union.
3-java doesnot support multiple inheritance however it
supports this by using interface.
4-Java have no template class.
5-java is platform indepedent and c++ is plotform
indepedent.
6-java donot contain any pointer values.
7-java java doesnot contain goto keyword.
these above features are not supported by java but
supported by C++.So these are the differences between java
and C++.
difference b/w java and c++
java is a true object oriented language while c++ is a
object oriented language
java does not support operator overloading.
java provides the multithreading capability.