What is the main difference between C++ and Java
Answer Posted / nish
the main difference is that java provides more security
than c++ and java is useful in web based applications.
In java there is no Multiple inheritance instead of that we
use Interfaces.
| Is This Answer Correct ? | 9 Yes | 1 No |
Post New Answer View All Answers
class CTest { public: void someMethod() { int nCount = 0; cout << "This is some method --> " << nCount; } }; int main() { CTest *pctest; pctest->someMethod(); return 0; } It will executes the someMethod() and displays the value too. how is it possible with our creating memory for the class . i think iam not creating object for the class. Thanks in Advance... Prakash
What are the benefits of interface?
What is stream in oop?
Whats oop mean?
What is pure oop?
How to handle exception in c++, For example in a functions i am assigning memory to some variables and also in next instructions in am dividing one variable also. If this functions generates a error while allocating memory to those variable and also while dividing the variable if i divide by zero then catch block how it will identify that this error has cone from perticular instruction
Plese get me a perfect C++ program for railway/airway reservation with all details.
What is overloading and its types?
What is the real time example of encapsulation?
What is abstraction encapsulation?
Can we override main method?
What is methods in oop?
What is object in oop with example?
How do you answer polymorphism?
Can you inherit a private class?