what is difference between c++ language and java language

Answers were Sorted based on User's Feedback



what is difference between c++ language and java language..

Answer / 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

what is difference between c++ language and java language..

Answer / aakash

java codes looks very similar to that of c++,but there are
many differences.
1.java has no preprocessor or header files.
2.java has no global variables.
3.java has automatic garbage collection.
4.java has no pointers.
5.java has no goto statements.
6.java has no multiple inheritance,java use interfaces instead.
7.java has no destructor.
8.java has strict lenghs for primitive types.

Is This Answer Correct ?    3 Yes 0 No

what is difference between c++ language and java language..

Answer / sakthi

C++ is partial object oriented language. we can able to
write program with out class.
Java is pure object oriented language. we can't able to
write program with out class.
java does not support pointer and multiple inheritance
concept. instead of multiple inheritance we are using
interface concept in java.

Is This Answer Correct ?    2 Yes 0 No

what is difference between c++ language and java language..

Answer / mca_manju

java is a pure object oriented language in a way that, all
the objects are dynamically created, plus whole programming
is done inside classes.whereas nothing as such is mandatory
in c++ programming.

Is This Answer Correct ?    1 Yes 0 No

what is difference between c++ language and java language..

Answer / srinivas reddy

both are oop languages.But we can efficiently programming with java because it is having more features like servlets,applets,
event handling.And also java is used in internet applications.

Is This Answer Correct ?    3 Yes 5 No

Post New Answer

More OOPS Interview Questions

function overridind means and simple program

2 Answers  


What is overloading in oop?

0 Answers  


when my application exe is running nad i don't want to create another exe what should i do

2 Answers   HCL,


wht is ditch

0 Answers  


what are the different types of qualifier in java?

0 Answers   TCS,






Write a program to sort the number with different sorts in one program ??

0 Answers   NIIT,


I am developing a payroll system mini project.I used file concept in program for reading and writing.When the program is reloading into the memory that is if i execute next time the file was cleaned and adding data from the starting this is my problem.I want to strore the previous data and if i want to add any record that should be next of previous data.Please help me.

0 Answers  


4. What do you mean by a prototype? Define analysis prototype

1 Answers  


Why can't we have instance(stack) of a class as a member of the same class like eg.Class A{A obj;} as we can have self refential pointer

0 Answers  


What are benefits of oop?

0 Answers  


What is the problem with multiple inheritance?

0 Answers  


In what situation factory design patterns,DAO design patterns,singleton design patterns should be applied.?

2 Answers  


Categories