Results 1 to 9 of 9

Thread: Main differences between Java and C++

  1. #1
    puneet167
    Guest

    Default Main differences between Java and C++

    Everything is an object in Java( Single root hierarchy as everything gets derived from java.lang.Object)
    Java does not have all the complicated aspects of C++ ( For ex: Pointers, templates, unions, operator
    overloading, structures etc..)
    The Java language promoters initially said "No pointers!", but when many programmers questioned how
    you can work without pointers, the promoters began saying "Restricted pointers." You can make up your
    mind whether itís really a pointer or not. In any event, thereís no pointer arithmetic.
    There are no destructors in Java. (automatic garbage collection)
    Java does not support conditional compile (#ifdef/#ifndef type).
    Thread support is built into java but not in C++.
    Java does not support default arguments. Thereís no scope resolution operator :: in Java. Java uses the
    dot for everything, but can get away with it since you can define elements only within a class. Even the
    method definitions must always occur within a class, so there is no need for scope
    resolution there either.
    Thereís no "goto " statement in Java.
    Java doesnít provide multiple inheritance (MI), at least not in the same sense that C++ does.
    Exception handling in Java is different because there are no destructors.
    Java has method overloading, but no operator overloading. The String class does use the + and +=
    operators to concatenate strings and String expressions use automatic type conversion, but thatís a special
    built-in case.
    Java is interpreted for the most part and hence platform independent.

  2. #2
    New Member regenesis's Avatar
    Join Date
    Feb 2012
    Location
    ottawa
    Posts
    10

    Default

    okay great. Thanks for differentiating between Java and C++.
    By d way which language you personally use?

  3. #3

    Default

    Thanks for sharing The useful info.Good to know something new..


  4. #4

    Default

    Java is a pure object-oriented language while C + +. Java is not invented to replace C + + was invented to solve other problems related to the network there r lot of difference as note through any book.

  5. #5

    Default

    Within a software engineering point of view, Java seems to be the more robust programming language among Java/C++. The language catches some of the ugly design and implementation features that C++ offers. The memory management based on garbage collection makes code more robust and might allow faster development. Concerning highly optimized code, C++ may be the choice.

  6. #6

    Default

    The main difference between Java and C++ is that java is purely object oriented programming language and secured programming language. you can make static method. but c++ you can't make.

  7. #7

    Default

    Java is purely object oriented programming and you can make static method in Java Language but in C++ you can't...

  8. #8
    New Member vernicalogic's Avatar
    Join Date
    Oct 2012
    Location
    delhi
    Posts
    16

    Default

    java is purely object oriented programing lanquage but c++ is not purely object oriented programing lanquage.

  9. #9
    Enthusiast BESTMANI22's Avatar
    Join Date
    Jun 2013
    Location
    Chennai
    Posts
    37

    Default

    Java is platform independent and it can run in any operating system whereas C++ is not. Java is a successor of C++.

Similar Threads

  1. Main Benefits of Real Estate Investment
    By oswald in forum Real Estate Discussions
    Replies: 61
    Last Post: 27-07-12, 12:51 AM
  2. Digital Bhoomi Main Features - Video Collections
    By michaeldadona in forum Your Voice / Community Center
    Replies: 0
    Last Post: 22-04-10, 08:10 PM
  3. Replies: 3
    Last Post: 29-11-09, 09:45 PM
  4. How your main blog should be prepared
    By michaeldadona in forum Blogs
    Replies: 0
    Last Post: 27-09-09, 03:39 AM
  5. om shanti om ke dialogues student ke andaaz main
    By jiya in forum Bollywood Movies
    Replies: 4
    Last Post: 27-06-09, 11:47 AM

Share this page with your friends

Share this page with your friends

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •