DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

+ Reply to Thread
Results 1 to 3 of 3
  1. #1
    Mighty Guest

    Differences between C++ and Java...


    What are differences between C++ and Java?
    If I know C++ what I must to learn more for knowing Java?

    Thanks

  2. #2
    Ako Guest

    Re: Differences between C++ and Java...


    This question has been asked many times on here. Many people ask this question
    and many more people rush into answering it but I dont think many people
    will offer you an impartial answer.
    Normally the answer reflects the persons wishes not the facts but the problem
    is they dont see it that way, you either get told that Java is the answer
    to every question ignore every thing else java is the way or you get told
    exactly the opposite C++ is the only real programming language and only pros
    know it, every one who says anything else is just not good enough to learn
    it.
    To me you will have to do your own research and decide for yourself which
    one is good for what, like any other things they both have their strengths
    and weaknesses. If your question regards which one should you learn well
    it largely depends on what you want to do and how do want to do it.
    While if you are just interested in knowing the differences between the 2
    form the design, implementation and philosophical points of view i dont think
    you are likely to get the answer here.



    Good luck,


    Ako





    "Mighty" <mighty@yahoo.com> wrote:
    >
    >What are differences between C++ and Java?
    >If I know C++ what I must to learn more for knowing Java?
    >
    >Thanks



  3. #3
    Danny Kalev Guest

    Re: Differences between C++ and Java...



    Mighty wrote:
    >
    > What are differences between C++ and Java?


    There are huge differences between the two: the application domains in
    which they are used, the programming paradigms (Java supports only OOP
    whereas C++ supports many other paradigms too, which is a major plus
    IMO), the stability of the language (Java is still a fledging language),
    the runtime model (an interpreted language that runs under the
    supervision of a VM as opposed to C++ which produces native executables.
    Guess which one is faster...) and of course, the APIs and libraries.
    Many people are misled into thinking that the two languages are similar
    because superficially, Java uses more or less the same syntax and both
    languages have to do with OO (which by itself, is a versatile
    programming paradigm that has many shapes and forms). However, once you
    get to know both languages more intimately, you will notice how
    different they really are. I'm not trying to sound objective -- my views
    of Java and C++ are quite familiar (at least for those who have read my
    previous responses to similar questions before) but I don't think anyone
    will disagree with the facts I've outlined thus far. Remember also that
    a programming language is a matter of personal taste. Sometimes people
    use one language instead of another because they like it more.

    > If I know C++ what I must to learn more for knowing Java?


    You must learn Java:) Seriously, there's not much in C++ that will help
    you to learn Java, and vice versa. There are some similar concepts say
    abstract classes (C++) and interfaces (Java), static methods,
    constructors etc. but when you get down the details, you discover that
    even in these regards the languages are substantially different. I'll
    give one example: constructors in C++ are used to initialize an object.
    In many classes, they have a matching destructor which performs the
    opposite operations, e.g., a ctor allocates memory, the dtor deallocates
    it etc. In Java, you can't do that because it doesn't have real
    destructors (finalize() is not even close) so your ctors also look
    different.

    Danny


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
HTML5 Development Center
 
 
FAQ
Latest Articles
Java
.NET
XML
Database
Enterprise
Questions? Contact us.
C++
Web Development
Wireless
Latest Tips
Open Source


Top DevX Stories

Easy Web Services with SQL Server 2005 HTTP Endpoints
JavaOne 2005: Java Platform Roadmap Focuses on Ease of Development, Sun Focuses on the "Free" in F.O.S.S.
Wed Yourself to UML with the Power of Associations
Microsoft to Add AJAX Capabilities to ASP.NET
IBM's Cloudscape Versus MySQL


Sponsored Links