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


Please Help Members By Posting Answers For Below Questions

What are the types of abstraction?

555


Templates mean

1587


What is this pointer in oop?

555


Why do we use oops?

593


Get me a number puzzle game-program

1694






What are constructors in oop?

592


What is the difference between inheritance and polymorphism?

590


What is object and class in oops?

588


Prepare me a program for the animation of train

1998


What is abstraction encapsulation?

657


What is cohesion in oop?

624


What is difference between abstraction and encapsulation?

592


What are different types of JVM's? for example we use dalvik jvm for android then what about the remaining operating systems?

1652


Can static class have constructor?

585


What is the important feature of inheritance?

633