What is the difference between C++ & Java?

Answers were Sorted based on User's Feedback



What is the difference between C++ & Java?..

Answer / imran khan

Both are Object Oriented Programming, But Java design to
support the web applications, GUI programming is easy with
java, Java does not require third party package(header file
in C++) to connect Database, Java is Platform independent
where as C++ is platform dependent.

Is This Answer Correct ?    75 Yes 7 No

What is the difference between C++ & Java?..

Answer / rekha katti

In java we use "applets" and "swing" components to design web applications which are user friendly. where as in c++ we have no such components to develop a web applications,which are user friendly.

Is This Answer Correct ?    72 Yes 9 No

What is the difference between C++ & Java?..

Answer / rohit

Java is a plate form independent Language but c++ is not.
Java doesn't support multiple inheritance but C++ do.
Java is more secure and robust than c++.

Is This Answer Correct ?    60 Yes 7 No

What is the difference between C++ & Java?..

Answer / tarique anwer

The main purpose to developed java language is that "TO
MAKE UNIQUE COMPILER".
java have unique compiler and c++ have savral compiler.

Is This Answer Correct ?    61 Yes 9 No

What is the difference between C++ & Java?..

Answer / gyana

You can say as java is the advance version of the C++.You
can made differences between this two because java do some
modification in the C++ and released it.So there are 6
differenes between java and c++.these are

1-Java does not support predessor.
2-Java doesn't contain any data types such as enum,
struct,union.
3-java doesnot support multiple inheritance however it
supports this by using interface.
4-Java have no template class.
5-java is platform indepedent and c++ is plotform
indepedent.
6-java donot contain any pointer values.
7-java java doesnot contain goto keyword.

these above features are not supported by java but
supported by C++.So these are the differences between java
and C++.

Is This Answer Correct ?    61 Yes 9 No

What is the difference between C++ & Java?..

Answer / shyam

java is totaly Encapsulated because every thing with in a
class...i c++ main remains out of class but in case of java
its inside the class...................

Is This Answer Correct ?    54 Yes 5 No

What is the difference between C++ & Java?..

Answer / prabhu

C++ SUPPORTS CONCEPTS OF POINTERS ,FRIEND FUNCTION
BUT IN JAVA CONCEPT OF POINTERS AND FREIND FUNCTION IS NOT
AVAILABLE

Is This Answer Correct ?    55 Yes 7 No

What is the difference between C++ & Java?..

Answer / 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

What is the difference between C++ & Java?..

Answer / murugan.s

Java make to Create console, window and web Applications..
but C++ only console application.

Is This Answer Correct ?    20 Yes 2 No

What is the difference between C++ & Java?..

Answer / s.palanivel rajan.,b.e

Java is pure object orientef language but C++ is not because
we can write a c++ pprogram without using class or object...

The techniques which are not supported in java nut supported
by c++ are...

POINTERS
STRUCTURES
OPERATOR OVERLOADING
MULTIPLE INHERITANCE
GOTO OPERATOR
AUTOMATIC TYPE CONVERSION
DESTRUCTOR
UNSIGNED INTEGER

Is This Answer Correct ?    21 Yes 4 No

Post New Answer

More Core Java Interview Questions

Explain where variables are created in memory?

0 Answers  


How do you use compareto method?

0 Answers  


Difference between object and reference?

0 Answers  


When does Exception occurs?

3 Answers  


Explain the difference between abstraction and encapsulation.

0 Answers  






How do you declare a string variable?

0 Answers  


How would you convert bytes to string?

0 Answers  


Explain exception chaining in java?

0 Answers   Cyient,


How we can declare a static variable?

0 Answers   HCL,


Define how can we find the actual size of an object on the heap?

0 Answers  


Difference between Superclass and Subclass?

7 Answers  


write a code, we have two thread, one is printing even no and other print the odd no.

1 Answers   Global Logic,


Categories