What is the difference between C++ & Java?




Answers were Sorted based on User's Feedback



Answer / r.lakshana

C++ is the advanced version of c i.e.C with Classes whereas
Java is the platform independent as it works on any type of
operating systems.

Is This Answer Correct ?    642 Yes 69 No

Answer / munish

java is reusable and more reliable,more secure than c++.

Is This Answer Correct ?    492 Yes 50 No

Answer / rishi

java has no pointers where c ++ has pointers

Is This Answer Correct ?    425 Yes 47 No




Answer / saket

C++ supports multiple inheritence but Java provides
interfaces in case of multiple inheritence.

Is This Answer Correct ?    399 Yes 28 No

Answer / sukumar.k.r

The main differences between c++ and Java are that "The
features that are present in C++ are not present in Java.

1) Pointers.
2) Templates.

Is This Answer Correct ?    345 Yes 58 No

Answer / prabhu

C++ SUPPORTS THE CONCEPT OF
1.POINTERS
2.TEMPLATES AND
3.VIRTUAL FUNCTIONS

BUT IN CASE OF JAVA IT WONT SUPPORTS THE ABOVE FEATURES

Is This Answer Correct ?    301 Yes 38 No

Answer / sukumar.k.r

The main difference between c++ and java is that "C++ does
not allow persistence because it does not support database
connection while Java allows persistence because it
supports database connection."

Is This Answer Correct ?    335 Yes 78 No

Answer / sanjay gajula

IN C++ WE CAN WRITE A PROGRAM WITHOUT USING "CLASS" WHEREAS
IN JAVA IT IS NOT POSSIBLE.

Is This Answer Correct ?    294 Yes 40 No

Answer / nitin agrawal

the main difference between c++ and java is that java is
consistent and it is a dynamic model.it is compact and
portable binary code while c++ is not. and most important
difference is the it has safe and secure execution
environment.

Is This Answer Correct ?    202 Yes 31 No

Answer / dsr

C++ java
pointers no pointers
multiple inheritance multiple inheritence with interface
platform dependent plotformindependent

Is This Answer Correct ?    86 Yes 7 No

Post New Answer



More Core Java Interview Questions

byte a=5; byte b=5; byte c=a+b; System.out.println(c); whats the o/p?

7 Answers   NIIT, Wipro,


What is the difference between abstract class and interface?

3 Answers  


Difference between Encapsulation and Abstraction

4 Answers   Fidelity,


What is multiple inheritance & can we implement it in java?

6 Answers   Satyam,


system.out.println(1 + 3);

8 Answers  


What is the format of Inner Class after it compiled?

1 Answers  


What is the life cycle of Thread ?

12 Answers   HCL, Varnar Softech,


write a program that list all permutations of ABCDEF in which A appears before B?

0 Answers   Nissan,


What is garbage collection in Java, and how can it be used ?

32 Answers   Infosys, HCL, Accenture, Wipro, Sara, SITS,


What is the use of anonymous inner classes ?

12 Answers   DELL, HCL,


How to set the Heap size in Java ?

2 Answers   HCL,


can two class in a code be public??if yes then how??

2 Answers  




Categories