C, C++, Java, Objective C? What should I learn?

From C++ to PHP, debugging to webhosting; help and discussion about writing your latest program to running your website. NOT for help when your PC won't work.

Announcements Posted on
Sign in to Reply
  1. Kardy's Avatar
    • Respected Member
    • Posts: 211
    C, C++, Java, Objective C? What should I learn?
    There's so much to choose. I want to go onto do Computer Science at uni after I finish my A2s next year. In uni it's most likely they'll specialise in java, so I don't see any point in learning that now.

    But out of C, C++ and objective-C, which is the best to learn right now? (in my spare time).
  2. estel's Avatar
    • TSR Idol
    • Location: Bristol
    • Posts: 9,352
    Re: C, C++, Java, Objective C? What should I learn?
    That depends on what you want to do with it. iOS / OSX programming? Choose Obj-C.

    Otherwise do C++ over straight C, or C# if you're developing on Windows.
  3. The_Last_Melon's Avatar
    • Overlord in Training
    Re: C, C++, Java, Objective C? What should I learn?
    Why not learn all of them?
  4. jordanosborn's Avatar
    • Respected Member
    • Location: Norfolk
    • Posts: 214
    Re: C, C++, Java, Objective C? What should I learn?
    It doesn't really matter which one you choose right now as you'll want to just learn basic programming techniques to start with, which can then be applied to any language. I'd probably go for c++ but that's just me.
  5. Jamil1987's Avatar
    • Exalted Member
    • Location: Hertfordshire
    • Posts: 373
    • Warning points: 2
    Re: C, C++, Java, Objective C? What should I learn?
    i do C, C++ and Java.
    If you haven't done any programming before I think C is the best place to start!
  6. Kardy's Avatar
    • Respected Member
    • Posts: 211
    Okay, I think I'll do a lot of c++ to start with then some objective c and then Java. Yeah I guess it wouldn't be too hard to learn them all as they do overlap a lot.
  7. beepbeeprichie's Avatar
    • Vengeful, Imperial Overlord of The Student Room
    • Posts: 3,838
    Re: C, C++, Java, Objective C? What should I learn?
    C++ is much faster than Java.
  8. kka25's Avatar
    • TSR Demigod
    • Posts: 6,412
    Re: C, C++, Java, Objective C? What should I learn?
    (Original post by estel)
    That depends on what you want to do with it. iOS / OSX programming? Choose Obj-C.

    Otherwise do C++ over straight C, or C# if you're developing on Windows.
    I'm curious; is Object C similar/closer to C# or C++?

    (Original post by beepbeeprichie)
    C++ is much faster than Java.
    In terms of?
  9. beepbeeprichie's Avatar
    • Vengeful, Imperial Overlord of The Student Room
    • Posts: 3,838
    Re: C, C++, Java, Objective C? What should I learn?
    (Original post by kka25)



    In terms of?
    Speed of execution.
  10. kka25's Avatar
    • TSR Demigod
    • Posts: 6,412
    Re: C, C++, Java, Objective C? What should I learn?
    (Original post by beepbeeprichie)
    Speed of execution.
    how so? I would say the consumption of memory that's making Java slow; in one source, Java consumed more memory than C and C++ combined.
    Last edited by kka25; 23-07-2012 at 20:17.
  11. JGR's Avatar
    • Exalted and Worshipped Member
    • Posts: 1,239
    Re: C, C++, Java, Objective C? What should I learn?
    (Original post by beepbeeprichie)
    Speed of execution.
    Not necessarily, various modern Java implementations can be compiled into the native instruction set, either in advance or on a JIT basis.

    In general, how good the code is (algorithmically speaking), is more important in terms of execution speed.
  12. beepbeeprichie's Avatar
    • Vengeful, Imperial Overlord of The Student Room
    • Posts: 3,838
    Re: C, C++, Java, Objective C? What should I learn?
    [QUOTE=JGR;38665808]Not necessarily, various modern Java implementations can be compiled into the native instruction set, either in advance or on a JIT basis.

    [QUOTE]
    In general, how good the code is (algorithmically speaking), is more important in terms of execution speed.</QUOTE]

    I'm not disputing that but ceterus paribus c++ is faster than Java.
    Last edited by beepbeeprichie; 23-07-2012 at 20:27.
  13. Final Fantasy's Avatar
    • Overlord in Training
    Re: C, C++, Java, Objective C? What should I learn?
    (Original post by Kardy)
    There's so much to choose. I want to go onto do Computer Science at uni after I finish my A2s next year. In uni it's most likely they'll specialise in java, so I don't see any point in learning that now.

    But out of C, C++ and objective-C, which is the best to learn right now? (in my spare time).
    If I could go back, I would have started off with C/C++.

    Therefore, that would be my advice to you. Even if your uni teaches Java, there's plenty of transferable skills from one language to another, and besides, being familiar with more than one language is always a bonus (perhaps to your final year project or future job prospects!).
  14. NightStrider's Avatar
    • Exalted Member
    • Posts: 362
    Re: C, C++, Java, Objective C? What should I learn?
    Well, Java is written in C++ - that should tell you something
  15. kka25's Avatar
    • TSR Demigod
    • Posts: 6,412
    Re: C, C++, Java, Objective C? What should I learn?
    (Original post by NightStrider)
    Well, Java is written in C++ - that should tell you something
    Really? I thought it came from Oak?
  16. Psyk's Avatar
    • TSR Royalty
    • Location: Leamington Spa
    • Posts: 19,079
    Re: C, C++, Java, Objective C? What should I learn?
    (Original post by kka25)
    Really? I thought it came from Oak?
    I think he means that the Java VM is written in C++. So ultimately when you run Java code, it's running on top of a platform developed in C++.

    According to http://en.wikipedia.org/wiki/Oak_(programming_language) Oak was the predecessor to Java, not what the VM was written in.
  17. kka25's Avatar
    • TSR Demigod
    • Posts: 6,412
    Re: C, C++, Java, Objective C? What should I learn?
    (Original post by Psyk)
    I think he means that the Java VM is written in C++. So ultimately when you run Java code, it's running on top of a platform developed in C++.

    According to http://en.wikipedia.org/wiki/Oak_(programming_language) Oak was the predecessor to Java, not what the VM was written in.
    Lol, ironically, from the wiki link:
    The team originally considered using C++, but rejected the idea for several reasons
    but at the end, the piece of code that runs the whole thing came from C++ ; D
  18. Outlaw1198's Avatar
    • New Member
    • Posts: 24
    Re: C, C++, Java, Objective C? What should I learn?
    based on my poll that i just did (http://www.thestudentroom.co.uk/poll...s&pollid=34000) most people are suggesting c++
  19. Fried Sock's Avatar
    • Full Member
    • Location: Preston
    • Posts: 97
    Re: C, C++, Java, Objective C? What should I learn?
    Why don't you learn a scripting language like lua/ruby/python you will be able to get things done a lot faster if you are just making something small and im guessing you dont care about execution speed if you are just learning.

    If you have your heart set on the above then I suggest C, but it will make much more sense to you after studying assembly and operating systems. You will have a lot more fun with a higher level language for now I believe.
  20. poohat's Avatar
    • Adored and Respected Member
    • Posts: 595
    Re: C, C++, Java, Objective C? What should I learn?
    Definitely C, its the one language that basically everyone working with computers needs to know. C++ is more 'practical' in some sense, but all the OO stuff gets in the way of the parts that are most important to learn (pointers, and how to write fast code). Besides you'll learn enough about OO in java and software engineering classes. If know C and Java then you basically know C++ anyway.
    Last edited by poohat; 26-07-2012 at 03:08.
Sign in to Reply
Share this discussion:  
Useful resources
Article updates
Moderators

We have a brilliant team of more than 60 volunteers looking after discussions on The Student Room, helping to make it a fun, safe and useful place to hang out.

Reputation gems:
The Reputation gems seen here indicate how well reputed the user is, red gem indicate negative reputation and green indicates a good rep.
Post rating score:
These scores show if a post has been positively or negatively rated by our members.