what is difference between c++ language and java language

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



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the real time example of encapsulation?

594


What is coupling in oops?

593


What is polymorphism explain its types?

675


Can destructor be overloaded?

594


Can you name some types of inheritance?

639






Why it is called runtime polymorphism?

573


is there any choice in opting subjects like 4 out of 7

1727


How do you achieve runtime polymorphism?

569


write a code for this:trailer recordId contains a value other than 99, then the file must error with the reason ‘Invalid RECORD_ID’(User Defined Exception).

1636


Why do while loop is used?

572


Why is it so that we can have virtual constructors but we cannot have virtual destructors?

3825


#include #include #include #include void insert(char *items, int count); int main(void) { char s[255]; printf("Enter a string:"); gets(s); insert(s, strlen(s)); printf("The sorted string is: %s.\n", s); getch(); return 0; } void insert(char *items, int count) { register int a, b; char t; for(a=1; a < count; ++a) { t = items[a]; for(b=a-1; (b >= 0) && (t < items[b]); b--) items[b+1] = items[b]; items[b+1] = t; } } design an algorithm for Insertion Sort

2164


What does it mean when someone says I oop?

580


Why is object oriented programming so hard?

616


What is inheritance in simple words?

624