What is the difference between C++ & Java?
Answer Posted / komal
c++ uses destructor to deallocate memory.
java uses garbage collector for this purpose
| Is This Answer Correct ? | 6 Yes | 0 No |
Post New Answer View All Answers
What is meant by inheritance and what are its advantages?
What is a module function?
What is the purpose of main function in java?
How do you find the maximum number from an array without comparing and sorting?
What are thread priorities and importance of thread priorities in java?
What are multiple inheritances? Is it supported by java?
What is pass by value?
What is consumer interface?
What is a stringbuffer?
What is role of void keyword in declaring functions?
If we allocate the memory using 'new' & de-allocated using 'free' then what will happen?
What is replaceall in java?
What package is math in java?
What are the different types of collections in java?
What is string in java?