What is the difference between C++ & Java?

Answer Posted / afreen

Differences between c++ and java are as follows:-
..c++ has header file #include<iostream.h> whereas java has import java.io.*;
..c++ uses clrscr() and getch(), java do not.
..c++ supports destructor, whereas java do not.
..complilation and running program differs in c++ and java.
..java is platform independent and machine independent, whereas c++ is not.
..In c++,the entire program is written in one class itself whereas java can have multiple classes.

Is This Answer Correct ?    4 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

how to open and edit XML file in Weblogic???

1541


How does arraylist work in java?

520


what is thread? What are the high-level thread states? : Java thread

780


Why is singleton not thread safe?

641


What is the difference between static (class) method and instance method?

566






Why declare Main() method as a static in java ?

593


What are the 8 primitive data types in java?

541


Can you instantiate the math class?

594


How can you set the applet size?

566


What is main string [] args?

516


What is the difference between && and & in java?

562


what do you understand by the term string with respect to java?

524


What is variable length arguments in java?

508


how to write a program for sending mails between client and server

1542


What is variable and constant explain with example?

525