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
What are the types of abstraction?
Templates mean
What is this pointer in oop?
Why do we use oops?
Get me a number puzzle game-program
What are constructors in oop?
What is the difference between inheritance and polymorphism?
What is object and class in oops?
Prepare me a program for the animation of train
What is abstraction encapsulation?
What is cohesion in oop?
What is difference between abstraction and encapsulation?
What are different types of JVM's? for example we use dalvik jvm for android then what about the remaining operating systems?
Can static class have constructor?
What is the important feature of inheritance?