What is the main difference between C++ and Java

Answers were Sorted based on User's Feedback



What is the main difference between C++ and Java..

Answer / kalyan

c++ is platform dependent and java is platform independent language. system programming is written using c,c++ and web based applications can be developed by java.

Is This Answer Correct ?    16 Yes 0 No

What is the main difference between C++ and Java..

Answer / bhuwan chandra

points is used in C++ whereas in java pointer is not used.

Is This Answer Correct ?    14 Yes 2 No

What is the main difference between C++ and Java..

Answer / selva kumar.r

In C++ we can use Inheritance.
there are various types of inheritance in c++
they are
* Simple / Single
* Multilevel
* Hierarchical
* Multiple
* Hybrid

Wheares in Java instead of Inheritance, we can use Interface

This is the major and main difference between C++ and
Java.

Is This Answer Correct ?    17 Yes 7 No

What is the main difference between C++ and Java..

Answer / nish

the main difference is that java provides more security
than c++ and java is useful in web based applications.
In java there is no Multiple inheritance instead of that we
use Interfaces.

Is This Answer Correct ?    9 Yes 1 No

What is the main difference between C++ and Java..

Answer / sravanthi

c++ is not a pure object oriented programming language where
as java is a pure object oriented language.i.e.,some opp
concepts like multiple inheritance,encapsulation etc is not
supported by java.in place of multiple inheritance interface
is introduced.and java does not support pointers as they
create some problems like crashing,terminating etc.java is
plat form independent where as c++ is plat form dependent
i.e.,in java we can write pgm once can run it anywhere.java
supports internet where c++ does not.c++ is a compiler,whereas
java is a both an interpreter & compiler.

Is This Answer Correct ?    8 Yes 3 No

What is the main difference between C++ and Java..

Answer / fara

java has application programme and applet programme. c++ is not like that

Is This Answer Correct ?    5 Yes 1 No

What is the main difference between C++ and Java..

Answer / ramya

c++ platform dependent
java platform independent

Is This Answer Correct ?    4 Yes 1 No

What is the main difference between C++ and Java..

Answer / r.r.bharti

java program cmpile the both translater compiler &
interpreter but c++ program compile only compiler

Is This Answer Correct ?    3 Yes 1 No

What is the main difference between C++ and Java..

Answer / saraswati

1.in java char take 2 byte whereas in c++ it take 1 byte
2.and in java do not havng signed unsigned concept bt in c++.
3.boolean take true/false instead of 1/0

Is This Answer Correct ?    1 Yes 1 No

What is the main difference between C++ and Java..

Answer / ram s

the main difference is java is a fully object oriented
programming language.but c++ doesn't,because it was not
support fully opp's concept.and also we are using java we
can devolope any type of application but c++ doesn't.

Is This Answer Correct ?    2 Yes 4 No

Post New Answer

More OOPS Interview Questions

What is friend function?

12 Answers   Wipro,


What does and I oop mean?

0 Answers  


What is encapsulation?

17 Answers   TCS,


write a program that takes input in digits and display the result in words from 1 to 1000

0 Answers   Wipro,


What is overloading in oop?

0 Answers  






Question In a class, there is a reference or pointer of an object of another class embedded, and the memory is either allocated or assigned to the new object created for this class. In the constructor, parameters are passed to initialize the data members and the embedded object reference to get inialized. What measures or design change should be advised for proper destruction and avioding memory leaks, getting pointers dangling for the embedded object memory allocation? Please suggest. Question Submitted By :: Sunil Kumar I also faced this Question!! Rank Answer Posted By Re: In a class, there is a reference or pointer of an object of another class embedded, and the memory is either allocated or assigned to the new object created for this class. In the constructor, parameters are passed to initialize the data members and the embedded object reference to get inialized. What measures or design change should be advised for proper destruction and avioding memory leaks, getting pointers dangling for the embedded object memory allocation? Please suggest. Answer # 1 use copy constructors 0 Shanthila There is something to be taken care in destructor, in copy constructor, suppose the memory is assigned to the embedded member object pointer with the parameter passed value, but if some other objects of different class also are pointing to this memory, then if some one deletes the object then this class member pointer object will become dangling, or if the object is not deleted properly then there will be memory leak. Please suggest the design change required to handle or avoid this situation

0 Answers   TCS,


Plese get me a perfect C++ program for railway/airway reservation with all details.

0 Answers   ITM,


what is the function of 'this' operator ?

7 Answers   Wipro,


what is diff between .net 1.1 and .net 2.0

4 Answers  


How is exception handling carried out in c++?

3 Answers  


the difference between new and malloc

5 Answers   Siemens,


What is deep and shalow copy?

3 Answers   L&T, TCS,


Categories