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 integer immutable in java?
What is an off by one error in java?
What are inner classes or non static nested classes in java?
Explain creating threads by implementing runnable class?
What is the purpose of void class?
Explain implementation and how is it different from conversion?
What is hashing principle in java?
How can we access some class in another class in java?
What is meant by string is immutable?
When should you make a function static?
Explain java coding standards for interfaces?
If we allocate the memory using 'new' & de-allocated using 'free' then what will happen?
What is return data type?
What are default methods ?
Explain the difference between string, stringbuffer and stringbuilder in java?