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 destructor give example?

807


What are the benefits of polymorphism?

847


2. Give the different notations for the class.\

1793


Why do we use inheritance?

809


Is html an oop?

767


What is the real life example of polymorphism?

841


what is the sylabus for priliminaries?

1890


what is graphics

2202


Why is polymorphism needed?

782


State what is encapsulation and friend function?

930


Question: Write a program that prints a paycheck. Ask the program user for the name of the employee, the hourly rate, and the number of hours worked. If the number of hours exceeds 40, the employee is paid “time and a half”, that is, 150 percent of the hourly rate on the hours exceeding 40. Be sure to use stepwi se refine ment and break your solution into several functions. Use the int_name function to print the dollar amount of the check.

938


How is polymorphism achieved?

763


Why do we need oop?

863


#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

2311


What makes a language oop?

814