What is the difference between C++ and java?

Answer Posted / ridicule

The main difference b/w c++ & java is:
* c++ is a platform dependent language.
* but java is platform independent language.it can be run
on every system which contain java virtual machine(jvm)

*both use oop concept,
we can write a c++ pgm without using class but class is
must in java;
that is java is pure oop language

Is This Answer Correct ?    24 Yes 5 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are oops functions?

778


Why do we use class in oops?

744


What is object-oriented programming? Webopedia definition

949


write a program to find 2^n+1 ?

1775


What is the use of oops?

796


what type of questions

1889


What are main features of oop?

868


What is oops with example?

763


What is overloading in oops?

832


Can we create object of interface?

832


What is the types of inheritance?

801


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.

921


What are the features of oop?

831


How do you answer polymorphism?

794


How is class defined?

820