What is the difference between C++ and java?
Answer Posted / ramakrishna yechuri
c++ is not purely object oriented language.
becoz when ever u say a purely object oriented everything
should be written inside the class.
In c++ u can write member functions outside the class also.
2) Though u declare a variable with private access
specifier i can access outside the main function with the
help of friend function.
Java is 99% object oriented.
purely object oriented means there should not be any
primitative data types.
java contains primitive data types.
| Is This Answer Correct ? | 13 Yes | 6 No |
Post New Answer View All Answers
program for insertion ,deletion,sorting in double link list
What is inheritance in oop?
What are benefits of oop?
Why is static class not inherited?
Can we have inheritance without polymorphism?
what are the ways in which a constructors can be called?
What is abstraction oop?
Write a java applet that computes and displays the squares of values between 25 and 1 inclusive and displays them in a TextArea box
What is encapsulation with real life example?
officer say me - i am offered to a smoking , then what can you say
How long to learn object oriented programming?
There are two base class B1,B2 and there is one class D which is derived from both classes, Explain the flow of calling constructors and destructors when an object of derived class is instantiated.
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
Why is oop useful?
What do you mean by overloading?