Are there any good sources for learning Java as an experienced C++ programmer?

  • Context: C/C++ 
  • Thread starter Thread starter Jocko Homo
  • Start date Start date
  • Tags Tags
    C++ Java Sources
Click For Summary

Discussion Overview

The discussion revolves around finding suitable resources for an experienced C++ programmer to learn Java SE 7. Participants explore the challenges and differences between the two languages, as well as potential learning materials that address these aspects.

Discussion Character

  • Exploratory
  • Technical explanation
  • Conceptual clarification
  • Debate/contested

Main Points Raised

  • One participant expresses difficulty in finding up-to-date Java tutorials specifically tailored for C++ programmers.
  • Another participant suggests that transitioning from C++ to Java should be relatively easy due to the programmer's experience, but highlights specific challenges such as memory management, OOP keyword differences, and flow-control variations.
  • A third participant mentions the existence of books titled "Java for C++ programmers" that could be beneficial, although they do not recommend specific titles due to their own reverse learning experience.
  • One participant points to the official Oracle Java tutorials as a potentially useful resource, noting that they are accurate and concise, while also assuming prior programming knowledge.

Areas of Agreement / Disagreement

Participants generally agree that transitioning from C++ to Java presents certain challenges, but there is no consensus on specific resources or tutorials that are best suited for this purpose. Multiple viewpoints on the types of materials available and their effectiveness remain present.

Contextual Notes

Some participants note that their knowledge may be outdated, particularly regarding changes in Java syntax and features since they last learned the language. This could affect the relevance of their suggestions.

Who May Find This Useful

Experienced programmers transitioning from C++ to Java, educators looking for resources to recommend, and those interested in understanding the differences between these programming languages.

Jocko Homo
Messages
133
Reaction score
0
I'm an experienced C++ programmer looking to learn Java SE 7. Because of the similarities of the language, you'd think there would be a tutorial out there suited for such people but I'm having trouble finding one. I've looked at a couple of Java tutorials that are tailored to C++ programmers but, from what little I do know of Java, they all seem to be out of date...

Does anyone happen to know of a good up-to-date Java tutorial for C++ programmers?
Thank you!
 
Technology news on Phys.org
Hey Jocko Homo.

I had to learn Java a very long time ago, and my background is in C/C++ and Assembler just so you know where I am coming from.

I think if you have a fair bit of experience in C++, Java will be an easy transition.

The biggest obstacles I see for you is memory management especially for how things are created and deleted (this is a big change) and how they are represented, the keyword differences for OOP, some other differences with inheritance, and apart from other syntax differences, the flow-control (you can't do function pointers quite like you can in C++) and the actual API.

Any decent references book that allows you to just go to these particular issues will do the job in my opinion, and there should be tonnes of things out there that are well organized (e.g. chapters are contained in a way that cover what you need).

I don't think you really need something highly customized: you probably have enough experience to have a gut sense of what you need to look for. The issues I stated above are the ones that I can remember off the top of my head, and I did Java a very long time ago, so if there are fundamental changes like in syntax and other features since then, they would have to be taken into account.
 
There are many books titled something like "Java for C++ programmers" which would probably be helpful.

Unfortunately, I can't recommend any specific books, because I'm actually going in the reverse direction :) I've recently picked up "C for Java programmers" and "C++ for Java programmers", and they are very helpful because they focus on simply the differences between the languages, without wasting time covering general concepts that are the same in most languages.
 

Similar threads

Replies
69
Views
11K
  • · Replies 8 ·
Replies
8
Views
3K
  • · Replies 11 ·
Replies
11
Views
3K
  • · Replies 18 ·
Replies
18
Views
5K
  • · Replies 8 ·
Replies
8
Views
6K
  • · Replies 1 ·
Replies
1
Views
4K
Replies
13
Views
19K
Replies
1
Views
3K
  • · Replies 3 ·
Replies
3
Views
3K
  • · Replies 8 ·
Replies
8
Views
4K