What is the main difference between C++ and Java

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 ?    17 Yes 7 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is polymorphism what are the different types of polymorphism?

553


Write a program to implement OOPS concepts such as inheritance, polymorphism, friend function, operator overloading?

4227


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!!!)

1631


What is abstraction example?

610


What type of loop is a for loop?

673






Why do we use inheritance?

622


Why is abstraction used?

597


What is polymorphism and types?

590


What is inheritance in oop?

591


Why do we use encapsulation in oops?

508


What is overriding vs overloading?

571


What is abstraction with example?

592


What is the main feature of oop?

612


Plese get me a perfect C++ program for railway/airway reservation with all details.

3416


What is oops concept with example?

570