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 is encapsulation in oops?
write a code for this. serial_number contained in the header of the file will be read , if this serial number is less than a previous serial number within a successfully processed file, or is the same as another serial number within a successfully processed file, or if the field contains anything other than 7 digits, then the file must error with the reason ‘Invalid SERIAL_NUMBER’.
What is oops?what is its use in software engineering?
What is pure oop?
What is constructor overloading in oop?
What are main features of oop?
to find out the minimum of two integer number of two different classes using friend function
What is and I oop mean?
Can we create object of interface?
Why oops is important?
What are oops methods?
Why interface is used?
What is inheritance in simple words?
Why do we use polymorphism in oops?
What is polymorphism what are the different types of polymorphism?