What is the difference between C++ and java?

Answer Posted / jenny bala

The major Difference between C++ and Java is,

1.C++ is not fully OOP language since we can write a program without class also, But in java we cannot write a program without class.

2.C++ is not fully platform independent where .class file is not generated if you didn't use class in your program. But in java all files will create .class file after compilation of program, so it's Fully platform independent.

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is oops with example?

562


what are the ways in which a constructors can be called?

1581


Why is polymorphism needed?

591


What is polymorphism in oop example?

513


What is multilevel inheritance?

723






Do you know about multiple inheritance?

637


What is inheritance and how many types of inheritance?

614


What is difference between abstraction and encapsulation?

590


What is polymorphism explain its types?

674


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

4235


What are objects in oop?

606


What is object in oops?

612


What is basic concept of oop?

696


What causes polymorphism?

569


What is constructor in oop?

585