What is the difference between C++ and java?

Answer Posted / vijay pratap

The difference between java & C++.

i- Java is a platform independent language,
ii-In java, you can't use VIRTUAL key word.
iii-Java is not fully object oriented programming language.


C++

i-C++ is a fully OOP language.
ii-You can use the VIRTUAL keyword in C++.
iii-C++ is a plateform dependent Language.

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 in programming?

566


Can we define a class within the interface?

553


Can we have inheritance without polymorphism?

608


Why do while loop is used?

575


c++ program to swap the objects of two different classes

1761






There are two base class B1,B2 and there is one class D which is derived from both classes, Explain the flow of calling constructors and destructors when an object of derived class is instantiated.

1458


What is pure oop?

597


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

2066


write knight tour problem which is present in datastructure

2164


What is polymorphism used for?

572


if i have same function with same number of argument but defined in different files. Now i am adding these two files in a third file and calling this function . which will get called and wht decide the precedence?

2753


Why interface is used?

551


when to use 'mutable' keyword and when to use 'const cast' in c++

1642


What is polymorphism and example?

592


How does polymorphism work?

635