Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 5 of 5
  1. #1
    New to the CF scene
    Join Date
    Mar 2011
    Posts
    3
    Thanks
    1
    Thanked 0 Times in 0 Posts

    new JAVA programming with C++ relatability question.

    I am currently a CS major at a university that teaches JAVA as its introductory class. Next year, I have to switch to a university closer to home. This university teaches c++ as its introductory language.

    I am wondering how tough you think the java-->C++ transition will go.

    Also, any reference/article/book/pdf/webpage that is very thorough in its explanation of the differences would be nice.

    Especially if its talking in relation to the exact java-->c++ switch.

    Thanks for your help.

  • #2
    Supreme Master coder! Philip M's Avatar
    Join Date
    Jun 2002
    Location
    London, England
    Posts
    18,018
    Thanks
    203
    Thanked 2,538 Times in 2,516 Posts
    This is the JavaScript forum. Java and Javascript are entirely different programming languages, in spite of the confusingly similar names. Rather like Austria and Australia!

  • Users who have thanked Philip M for this post:

    klagartin (04-18-2011)

  • #3
    New to the CF scene
    Join Date
    Mar 2011
    Posts
    3
    Thanks
    1
    Thanked 0 Times in 0 Posts
    Oops. Sorry, Im obviously a novice.

  • #4
    God Emperor Fou-Lu's Avatar
    Join Date
    Sep 2002
    Location
    Saskatoon, Saskatchewan
    Posts
    16,987
    Thanks
    4
    Thanked 2,660 Times in 2,629 Posts
    You should find the conversion fairly simple. C++ requires a little more effort that Java does under the hood for you like garbage collection and memory allocations. Java has a few benefits over C++ in the sense of ease, garbage collection and multiplatform come to mind. C++ is more powerful though, you can template from multiple classes which Java cannot.
    PHP Code:
    header('HTTP/1.1 420 Enhance Your Calm'); 

  • #5
    Regular Coder Aradon's Avatar
    Join Date
    Jun 2005
    Location
    USA
    Posts
    734
    Thanks
    0
    Thanked 20 Times in 19 Posts
    I did Java for 7 years before switching to C++ for the past 3. The transition is pretty easy as long as you're willing to learn ab it more about memory management.

    For me the switch was easy once I got my head around a bit of the complexities of C++. What I did to learn was to implement a bunch of data structures in C++, Linked Lists, hash tables, binary search tree's etc.

    It got me up to speed quickly.
    "To iterate is human, to recurse divine." -L. Peter Deutsch


  •  

    Posting Permissions

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