Difference between C++ and Java

This is a very famous question asked in many interviews (specially to Programmers)…

C++ was developed as an extension of C. C++ added object oriented capabilities to C and became very popular. It is still widely used for many low level programming jobs. C++ was influenced from Smalltalk the first object oriented programming language.

Java was influenced from C++.

C++ has got pointers but in Java there were no concept of pointers.

In C++ there are destructors which is like a function used to free any memory created during the program execution.

Java’s garbage collector takes care of the freeing of memory, the programmer don’t need to worry about it.


5 thoughts on “Difference between C++ and Java

  1. Pingback: Difference Between C++ and Java « Coding Languages

  2. Pingback: JAVA Assignment help: JAVA Benefits | Locus RAGS

  3. Pingback: Assignment Help Blog | Java | DotNet | Java Programming Assignment Help | Online Assignment help Australia | Locus RAGS

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s