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...


Diff between C++ and java?

Answers were Sorted based on User's Feedback



Diff between C++ and java?..

Answer / sivasubramanian.k

In C++ there is concept of pointers for memory management
but there is garbage collecor in Java which automatically
allocates and frees memory after the particular scope in
the code...In C++ it supports concept of multiple
inheritance but for java instead of multiple inheritance
there is concept of interface...

Is This Answer Correct ?    11 Yes 2 No

Diff between C++ and java?..

Answer / pathi

in java we must need atleast one class to define our
code...but in c++ we can also define it without a class..

Is This Answer Correct ?    3 Yes 0 No

Diff between C++ and java?..

Answer / ruchi

In c++,there is destructor but in java there is no
destructor.
c++ programs are faster than java programs.
c++ supports multiple inheritance whereas java does not.
in c++ , we can write programs without classes but in java
we have to use classes .

Is This Answer Correct ?    4 Yes 1 No

Diff between C++ and java?..

Answer / blue arkos

Java is interpreted. This means that java source code is
compiled once, but it has to be interpreted by the JVM (Java
Virtual Machine) everytime the programme is executed. On the
other hand, C++ is not. C++ source code will compile once,
but it is NOT interpreted everytime the programme runs,
because C++ code is converted directly to machine language
instructions (in the machine that the C++ programme was
compiled). This is the reason why C++ is NOT portable.

Java is portable. This means that any Java programme can be
executed in any machine, provided that it has a JVM. C++
applications can only be executed in the machine in which
they were created (or in some cases, in similar machines
e.g. a C++ application that was writen in a computer under
the Windows XP Operating System, it will probably run in
other computers with Windows XP and maybe in computers with
other Windows versions, but certainly not in a cell phone).

That's why Java programmes are slower. They have to be
interpreted at runtime and this yields some overhead. This
is the efficiency - portability trade-off. Java applications
are portable, but C++ applications are executed faster.

Finally, there are some ways to overcome this trade-off from
both languages' point of view, but this is not the subject
of the question.

Is This Answer Correct ?    4 Yes 1 No

Diff between C++ and java?..

Answer / shyam kumar

in java we must need atleast one class to define our code

Is This Answer Correct ?    4 Yes 2 No

Diff between C++ and java?..

Answer / raja pavan kumar

OOPS is a aprroach or style
C++ is a tool to implement this approach
Java also another tool to implement this approach
there is no link between C++ and Java
C++ is partially OOPS.
Java is completely OOPS

Is This Answer Correct ?    1 Yes 1 No

Diff between C++ and java?..

Answer / gyana

Java is simply different from C++.Because it do some
modification to c++ then after it publish..So there are 6
major difference here i can explain.These are

1-java doesn't support predessors.Where as C++ support this.
2-Java doesnot support Multiple inheritance however it use
this by using interface.
3-Java doesn't contain any pointer value.
4-Java have no template class.
5-Java doesn't contain any datatype such as
struct,enum,union.
6-Java have no Go to keyword.

Above these points are not supported by java , but
supported by c++.So these are the difference between java
and c++.

Is This Answer Correct ?    0 Yes 1 No

Diff between C++ and java?..

Answer / sakthivel(gceb)(n.p)pollachi

c++ is an object oriented language. but java is pure object
oriented language.in java all properties are based on
classes and objects.but in c++ we can write and execute the
program with out using class.

Is This Answer Correct ?    1 Yes 3 No

Diff between C++ and java?..

Answer / hanu

Java is Pure Object Oriented while C++ is not .

Is This Answer Correct ?    1 Yes 6 No

Post New Answer

More Core Java Interview Questions

What is the use of Getters and Setters method ?

4 Answers  


what is difference between set and list in collection?

3 Answers   Satyam,


can we write program without class

6 Answers   TCS,


When wait(), notify(), notifyall() methods are called does it releases the lock or holds the acquired lock?

0 Answers  


Write a java program to check if a number is prime or not?

0 Answers  


What is an example of a constant variable?

0 Answers  


what is the difference b/w static and final methods?

1 Answers  


What is functional interface in javatpoint?

0 Answers  


How to read and write image from a file ?

0 Answers  


What is the difference between multiple processes and multiple threads?

0 Answers  


How to perform quicksort in java?

0 Answers  


What is the code inside the public void actionPerformed(ActionEvent ae) override method in Applet [ Condition:- you have one TextField and One Button , you have to enter any color name inside the TextField, when you click on Button Your background will change according to your input color name]

2 Answers   IBM,


Categories