Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


What is the difference between C++ & Java?

Answers were Sorted based on User's Feedback



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

Answer / sowmya

Feature C C++ Java
Paradigms Procedural Procedural, OOP, Generic Programming OOP, Generic Programming (from Java 5)
Form of Compiled Source Code Executable Native Code Executable Native Code Java bytecode
Memory management Manual Manual Managed, using a garbage collector
Pointers Yes, very commonly used. Yes, very commonly used, but some form of references available too. No pointers; references are used instead.
Preprocessor Yes Yes No
String Type Character arrays Character arrays,
Feature C C++ Java
Paradigms Procedural Procedural, OOP, Generic Programming OOP, Generic Programming (from Java 5)
Form of Compiled Source Code Executable Native Code Executable Native Code Java bytecode
Memory management Manual Manual Managed, using a garbage collector
Pointers Yes, very commonly used. Yes, very commonly used, but some form of references available too. No pointers; references are used instead.
Preprocessor Yes Yes No
String Type Character arrays Character arrays, objects Objects
Complex Data Types Structures, unions Structures, unions, classes Classes
Inheritance N/A Multiple class inheritance Single class inheritance, multiple interface implementation
Operator Overloading N/A Yes No
Automatic coercions Yes, with warnings if loss could occur Yes, with warnings if loss could occur Not at all if loss could occur; msut cast explicitly
Variadic Parameters Yes Yes No
Goto Statement Yes Yes No

Is This Answer Correct ?    18 Yes 1 No

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

Answer / abdull wadood

In c++ you can use destructor but in java u can't use
destructor.
In java u can request the compiler to garbage collector.

Is This Answer Correct ?    20 Yes 3 No

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

Answer / salim farooqui

difference b/w java and c++
java is a true object oriented language while c++ is a
object oriented language

java does not support operator overloading.

java provides the multithreading capability.

Is This Answer Correct ?    20 Yes 5 No

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

Answer / prakash savaniya

Java doesnt require any header file.
it uses import statement instead of #include statement

Is This Answer Correct ?    21 Yes 6 No

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

Answer / swati patodkar

java is pure object oriented programing laguage.
but c++ is not pure object oriented programing laguage & we
can write a program as procedural language in ++ .

Is This Answer Correct ?    16 Yes 3 No

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

Answer / mahesh telor

c++ provides two types of comment where java provides 3
types of comment

* c++ comment is * java comment is
(1) single line comment (1) singleline comment
(2) multipleline comments (2) multipleline comments
(3) documentation comment

Is This Answer Correct ?    16 Yes 4 No

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

Answer / dilip chaudhary

The main difference between c++ and java is that java is a
platform independent i.e. write once and run any where,but
c++ doesn't.

Is This Answer Correct ?    9 Yes 0 No

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

Answer / priyal rathod

Java supports only LOCAL variable where as C++ supports
LOCAL & GLOBLE variable both

Is This Answer Correct ?    16 Yes 8 No

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

Answer / chandra sekhar

Java is a fully object oriented language where as c++ is c
with classes.
Java is used for all kinds of development i.e
console,web,windows where as c++ is only for console.
Java supports "Applets" and "Swings" concept that makes it
to be more powerful language than c++.

Is This Answer Correct ?    12 Yes 4 No

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

Answer / mustafa daudi

*Java Supports dynamic memory allocation due to dynamic
allocation there is no wastage of memory..
While in c++ there is wastage of memory.
*Java is exensible because new class can easily added in
libraries while in c++ it is not possible..

Is This Answer Correct ?    9 Yes 1 No

Post New Answer

More Core Java Interview Questions

what is difference between global methods and local methods?

1 Answers  


Hi Friends, I am new to java. Can u explain about thread concept.How i know one thread is locked, and how can i force or acquire another thread for lock . Finally how to know thread is released from lock. Explain types of lock(like method level and block level) in thread.

1 Answers  


Describe how to implement singleton design pattern in struts.

0 Answers  


What is the difference between yielding and sleeping?

0 Answers  


What is difference between compatible and incompatible changes in serialization?

1 Answers   Synechron,


Convert a BST into a DLL and DLL to BST in place.

0 Answers   Amazon,


I have one POJO class(Java bean class), it has two variables for that it has setters and getters. Now i have created two objects for that class and i have set the data for those variables through this two objects. Now question is i want check whether those two objects have same data or not, for this write a program? Thanks, Bose.

2 Answers   Oracle,


Which is the best approach for creating thread ?

0 Answers  


List some features of the abstract class.

0 Answers  


What is downcasting?

0 Answers  


diff. b/w JAVA and javascript...

3 Answers   NIIT,


How do I get a substring?

0 Answers  


Categories