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
What is split return?
How java is similar to c?
why java uses class level type casting ?
What is core java used for?
Is null in java?
what is synchronization and why is it important? : Java thread
why using interface interface ?
Can you start a thread twice in Java?
Why is the main method declared static?
Which is better stringbuilder or stringbuffer?
What is the main function in java?
Can substring create new object?
What is an example of a keyword?
How do you achieve singleton?
Explain about java sdk?