Welcome to the Java Programming Forums


The professional, friendly Java community. 21,500 members and growing!


The Java Programming Forums are a community of Java programmers from all around the World. Our members have a wide range of skills and they all have one thing in common: A passion to learn and code Java. We invite beginner Java programmers right through to Java professionals to post here and share your knowledge. Become a part of the community, help others, expand your knowledge of Java and enjoy talking with like minded people. Registration is quick and best of all free. We look forward to meeting you.


>> REGISTER NOW TO START POSTING


Members have full access to the forums. Advertisements are removed for registered users.

Results 1 to 5 of 5

Thread: Java or C++

  1. #1
    Banned
    Join Date
    Mar 2011
    Location
    uk
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Java or C++

    I am beginner in this field. I want to learn programming. So suggest me where i can start?

    Java
    or
    C++

    Which is easier to understand or they relate each other or not? I start first Java or C++.


  2. #2
    Crazy Cat Lady KevinWorkman's Avatar
    Join Date
    Oct 2010
    Location
    Washington, DC
    Posts
    5,424
    My Mood
    Hungover
    Thanks
    144
    Thanked 636 Times in 540 Posts

    Default Re: Java or C++

    This really isn't a question we can answer. Every person is different. You're on a Java forum though, so most people are going to say Java is better. If you went to a C++ forum, you'd get completely different answers. Same deal if you went to a php, lisp, or python forum.

    How you learn, and what you think is important in a language, is up to you.

    But if you really want an opinion, I vote you learn lolcode.
    Useful links: How to Ask Questions the Smart Way | Use Code Tags | Java Tutorials
    Static Void Games - Play indie games, learn from game tutorials and source code, upload your own games!

  3. #3
    Crazy Cat Lady KevinWorkman's Avatar
    Join Date
    Oct 2010
    Location
    Washington, DC
    Posts
    5,424
    My Mood
    Hungover
    Thanks
    144
    Thanked 636 Times in 540 Posts

    Default Re: Java or C++

    Sigh, but you've already received that advice, haven't you?

    This thread has been cross posted here:

    http://www.java-forums.org/suggestions-feedback/41887-java-c.html

    Although cross posting is allowed, for everyone's benefit, please read:

    Java Programming Forums Cross Posting Rules

    The Problems With Cross Posting
    http://www.javaprogrammingforums.com...s-posting.html

    Useful links: How to Ask Questions the Smart Way | Use Code Tags | Java Tutorials
    Static Void Games - Play indie games, learn from game tutorials and source code, upload your own games!

  4. #4
    Super Moderator helloworld922's Avatar
    Join Date
    Jun 2009
    Posts
    2,896
    Thanks
    23
    Thanked 619 Times in 561 Posts
    Blog Entries
    18

    Default Re: Java or C++

    Yes (using math or logic ). Even if you only ever use one language mainly learning multiple languages is helpful for exposing you to design considerations which you may never have thought of. For example, I know of several C#/Java programmers who have a very poor grasp of memory models/managing memory smartly, and thus they'll do something like append thousands of lines to a String and expect it to perform well (fyi, it probably won't). On the other hand, C++ tends to encourage this mentality of premature optimization, where you're writing code that looks fast but in reality only gives you negligible speed improvements while neglecting readability, code stability, or providing a good user interface.

    There's nothing saying you can't learn both languages at the same time (the basic syntax of both languages are similar), I would recommend getting a coin and flipping for which one you want to start with, learn a little bit, then learn about Computer Science topics (algorithms, OOP, functional programming, data structures, etc.), which tend to be mostly independent of what language you use. Along the way, you could also start learning the basics of the other language and see how to apply what you've learned about CS to that language as well.

  5. #5
    Junior Member
    Join Date
    Jul 2010
    Posts
    21
    My Mood
    Sleepy
    Thanks
    6
    Thanked 0 Times in 0 Posts

    Default Re: Java or C++

    If your purpuse is to understand the principles of OOP, I'd recommend you to start it off with ActionScript 3. It's syntax is very similar to Java but it's much easier to understand if you never learned any programming languages