What is the main difference between C++ and Java

Answer Posted / sravanthi

c++ is not a pure object oriented programming language where
as java is a pure object oriented language.i.e.,some opp
concepts like multiple inheritance,encapsulation etc is not
supported by java.in place of multiple inheritance interface
is introduced.and java does not support pointers as they
create some problems like crashing,terminating etc.java is
plat form independent where as c++ is plat form dependent
i.e.,in java we can write pgm once can run it anywhere.java
supports internet where c++ does not.c++ is a compiler,whereas
java is a both an interpreter & compiler.

Is This Answer Correct ?    8 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is debug class?what is trace class? What differences are between them? With examples.

1594


Can you name some types of inheritance?

627


How to call a non virtual function in the derived class by using base class pointer

5235


What is the important feature of inheritance?

623


What is Difeerence between List obj=new ArrayList(); and ArrayList obj=new ArrayList()?

2086






What is encapsulation c#?

592


What is polymorphism oop?

606


What is the difference between abstraction and polymorphism?

600


What is the real life example of polymorphism?

597


What is abstraction in oop?

623


Can enum be null?

578


What is constructor in oop?

573


What is oops in programming?

556


What does <> mean pseudocode?

610


what is difference between class template and template class?

2147