what is the difference between Cpp And Java
Answer Posted / subramanyam reddy.b
java is 100% pure object language because it supports all the features of oops and also overcome the draw backs of c++. all c++ programs can be written like cc programs, c++ support friend functions to access private data members, it is illegal. tell me why we have to use private key word to provide security for our data, but by using friend functions we can access the private date it is illegal.c++ does not support automatic gorbage collection, even though destructors are exists in c++ we need to write the code for destructors, without writing code it wont work. in java we have gorbage collectors.c++ support only seequential access where as java support concurrent access of data by using multi threading concept.java is used to develop distributed applications but c++ for staand alone applicatiuons............ like this we have many advantages with java
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
Is there any tag in htm to upload and download files?
What happens to the Exception object after handling an exception?
What are the differences between throw and throws?
Difference between arraylist and hashset in java?
What are internal variables?
How can a gui component handle its own events in java programming?
Tell some latest versions in JAVA related areas?
Can we force the garbage collection to run?
Give the hierarchy of inputstream and outputstream classes.
What are the main uses of this keyword?
What invokes a thread's run() method in java programming?
When throws keyword is used?
What is anagram word?
What are the main differences between the java platform and other platforms?
Give few difference between constructor and method?