What is the difference between C++ & Java?

Answer Posted / gokul

1) c++ is platform dependent
Java is platform independent

2) multiple inherence is possible in c++ but not in Java

3) Pointers possible in c++ but not in Java

4) we cant create web applications in c++ but can in Java

5) A c++ program can be without class, but java program
should be in class :)

Is This Answer Correct ?    26 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the purpose of format function?

634


What is the use of arraylist class in java?

565


What are the differences between the constructors and methods?

591


Is hashmap thread safe?

567


Howto get an object that will perform date & time calculations then format it for output in some different locales with different date style.can ne1 tel me the answer of this question.pls

1454






A person says that he compiled a java class successfully without even having a main method in it? Is it possible?

594


What is the method to declare member of a class static?

541


How does multithreading take place on a computer with a single cpu?

556


Is it safe to install java on my computer?

550


What is the difference between iterator and list iterator?

541


Is null function in java?

574


What is a function in java?

576


Can you inherit a constructor java?

581


What is exception handling in java?

582


What is string in java? String is a data type?

585