Results 1 to 3 of 3

Thread: c++ vs Java:

  1. #1
    jocdrew21 is offline Member
    Join Date
    Jan 2014
    Posts
    64
    Rep Power
    0

    Default c++ vs Java:

    Ok and about about to start learning Java on my own. I am very familiar with C++ but that a C are the only languages I know. I understand Java is more flexible and markable. How close are Java and C++? Will I have a huge learning curve? What can I do with Java that I cannot do with c++?

    For the record I have googled this question so I know it can go in a lot of different directions. So I will ask some more direct questions:

    - What are a few books to start with to really learn how to program in Java?

    - What are some sites I can look at to do some real problem solving in Java when I get to that level?

    - What advice do you have for a guy who likes C++ (because I only know it) and is moving into Java?

    Drew

  2. #2
    JosAH's Avatar
    JosAH is offline Moderator
    Join Date
    Sep 2008
    Location
    Voorschoten, the Netherlands
    Posts
    13,655
    Blog Entries
    7
    Rep Power
    21

    Default Re: c++ vs Java:

    C++ is more powerful in that you have multiple inhertance of implementation, operator overloading, direct physical macgine control and yadda, yadda, yadda; Java is more convenient because you have explicit type interfaces, no hidden trickery-dickery (ignoring garbage collection) and there only is an abstract machine (ignoring JNI for the moment); pick your choice.

    kind regards,

    Jos
    cenosillicaphobia: the fear for an empty beer glass

  3. #3
    gimbal2 is offline Just a guy
    Join Date
    Jun 2013
    Location
    Netherlands
    Posts
    4,098
    Rep Power
    6

    Default Re: c++ vs Java:

    Quote Originally Posted by jocdrew21 View Post
    Ok and about about to start learning Java on my own. I am very familiar with C++ but that a C are the only languages I know. I understand Java is more flexible and markable. How close are Java and C++?
    (I don't know what "markable" is and neither does my spellchecker). In language: quite similar. In platform: 100% different since one is native and the other is virtual machine based. I went the same way you did (C -> C++ -> Java); you'll be just fine as long as you don't want to start programming C++ in Java. Better spend a good deal of time learning the Java environment; to start with learning the common code formatting rules.

    Code Conventions for the Java Programming Language: Contents
    "Syntactic sugar causes cancer of the semicolon." -- Alan Perlis

Posting Permissions

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