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
What are the 3 pillars of oop?
What is encapsulation in simple terms?
What is overloading and its types?
Which language is not a true object oriented programming language?
How do you achieve runtime polymorphism?
Why is static class not inherited?
what are the different types of qualifier in java?
Why do we need oop?
What is meant by oops concept?
What is persistence in oop?
Hi friends I have experience of 6 months in website design and maintanence. Now i am looking for other IT jobs.. to switch platform. please post any interview you know in chennai.
Why is destructor used?
What is polymorphism what are the different types of polymorphism?
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!!!)
Can we define a class within the interface?