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
Why do we use class in oops?
Explain the advantages of inheritance.
Describe these concepts: Polymorphism, Inheritance and Abstraction.
Can bst contain duplicates?
What are different oops concepts?
What is overloading in oops?
Explain virtual inheritance?
What is super in oop?
How does polymorphism work?
What is object in oop with example?
What is stream in oop?
Write a C++ program without using any loop (if, for, while etc) to print prime numbers from 1 to 100 and 100 to 1 (Do not use 200 print statements!!!)
What is new keyword in oops?
What is object-oriented programming? Webopedia definition
Which type does string inherit from?