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 the difference between abstraction and polymorphism?

859


when to use 'mutable' keyword and when to use 'const cast' in c++

1898


What are the benefits of oop?

885


How do you define social class?

825


What are the 3 principles of oop?

846


What are the 4 main oop principles?

954


Which language is pure oop?

763


What is a superclass in oop?

923


What is a class in oop?

785


Which is not an object oriented programming language?

754


What does <> mean pseudocode?

856


What is the difference between procedural programming and oops?

785


What are the types of abstraction?

789


What is pointer in oop?

745


What is encapsulation with real life example?

798