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

Will I be able to get a picture in D drive to the c++ program? If so, help me out?

1655


what are the different types of qualifier in java?

1840


What is abstraction in oops with example?

770


what is different between oops and c++

2000


What is difference between oop and pop?

611






i am getting an of the type can not convert int to int *. to overcome this problem what we should do?

1833


Advantage and disadvantage of routing in telecom sector

784


What is overloading in oops?

596


Why interface is used?

549


Question: Implement a base class Appointment and derived classes Onetime, Daily, Weekly, and Monthly. An appointment has a description (for example, “see the dentist”) and a date and time. Write a virtual function occurs_on(int year, int month, int day) that checks whether the appointment occurs on that date. For example, for a monthly appointment, you must check whether the day of the month matches. Then fill a vector of Appointment* with a mixture of appointments. Have the user enter a date and print out all appointments that happen on that date.

628


Why do we use class?

633


How does polymorphism work?

635


what type of question are asked in thoughtworks pair programming round ?

1758


2. Give the different notations for the class.\

1586


• What are the desirable attributes for memory managment?

1725