what is difference between c++ language and java language

Answer Posted / selva kumar.r

In C++ we can use Inheritance.
there are various types of inheritance in c++
they are
* Simple / Single
* Multilevel
* Hierarchical
* Multiple
* Hybrid

Wheares in Java instead of Inheritance, we can use Interface

This is the major and main difference between C++ and
Java.

Is This Answer Correct ?    5 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is overriding vs overloading?

571


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’.

1762


What are the 3 principles of oop?

604


what is the drawback of classical methods in oops?

2906


What is the types of inheritance?

592






explain sub-type and sub class? atleast u have differ it into 4 points?

1820


Do you know about multiple inheritance?

629


given a set based questions and 5 questions based on it next data sufficiciency questions 2 and 2/3 english sentence completion with options very easy and 2 synononmys paragraph with 10 questions 10 minutes replace =,-,*,% with -,%,+,* type questions 5 3 questions lik following itssickhere itssickthere itssickhere istsickhere which is nt alike the others very easy

2134


What is abstract class in oops?

586


Is enum a class?

593


What is oops in simple words?

567


What is difference between oop and pop?

599


Write a program to reverse a string using recursive function?

1778


Which language is not a true object oriented programming language?

627


What is polymorphism and example?

581