what is difference between c++ language and java language
Answers were Sorted based on User's Feedback
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 |
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 |
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 |
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 |
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 |
why function overloading is not called as pure polymorphism?
You have one base class virtual function how will call that function from derived class?
i hav very low percentage in 12th n BSCwhich is around 50.......coz it was just imposed on me 2 b a science graduate,nw m doin MCA n hav aggregate 74% ....what shud i answer if company's HR ask me about dis much low previous percentage??????
A file pointer always contains the __________ of the file
what is a binary overloading
What are the four main oops concepts?
what is difference between String s=new String("vali"); String s="vali"
What is coupling in oop?
char* ptr = "Rahul"; *ptr++; printf("%s",ptr); What will be the output
What is encapsulation with real life example?
How many types of access specifier in c# and vb.net?
how do you handle yourself when you feel the wald is aganist you