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?

Answer Posted / gurpreet singh

1.C++ supports pointers whereas Java does not pointers. But
when many programmers questioned how you can work without
pointers, the promoters began saying "Restricted pointers.”
So we can say java supports Restricted pointers.

2.At compilation time Java Source code converts into byte
code .The interpreter execute this byte code at run time
and gives output .Java is interpreted for the most part and
hence platform independent. C++ run and compile using
compiler which converts source code into machine level
languages so c++ is plate from dependents



3.Java is platform independent language but c++ is depends
upon operating system machine etc.



4.Java uses compiler and interpreter both and in c++ their
is only compiler
5.C++ supports operator overloading multiple inheritance but
java does not.



6.C++ is more nearer to hardware then Java

7.Everything is an object in Java (Single root hierarchy as
everything gets derived from java.lang.Object).



8.Java does is a similar to C++ but not have all the
complicated aspects of C++ (ex: Pointers, templates, unions,
operator overloading, structures etc..)

>>Java does not support conditional compile (#ifdef/#ifndef
type).

9.Thread support is built-in Java but not in C++.

10.Internet support is built-in Java but not in C++.

11.Java does not support header file, include library files
just like C++ .Java use import to include different Classes
and methods.



12.Java does not support default arguments like C++.

13.There is no scope resolution operator β€œ:: β€œin Java.

14.There is no "goto " statement in Java.

15.Exception and Auto Garbage Collector handling in Java is
different because there are no destructors into Java.

16.Java has method overloading, but no operator overloading
just like c++.



17.The String class does use the + and += operators to
concatenate strings and String expressions use automatic
type conversion,



18.Java support call by value only.


19.Java does not support unsigned integer.

Is This Answer Correct ?    4 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is e java?

1099


List some java keywords sun like c, c + + keywords?

1000


What is default exception handling in java?

1030


What is a default method?

1045


Why spring singleton is not thread safe?

997


What is the difference between integer parseint and integer valueof?

999


Write an algorithm program in java for the following question.. 1) S is a set of integers.X is an integer obtained by sum of two digits in S. Write logic for whether or not the X is from the S. The time of algorithm should not exceed o(n logn).

2142


Why we use multi threading instead of multiprocessing?

1063


How many types of operators are there?

983


What is definition and declaration?

1015


What are the steps that are followed when two computers connect through tcp?

989


What is meant by stack and queue?

1066


What is the synchronized method modifier?

1202


What is array size in java?

958


What are selection structures?

998