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

  • Java
  • Thread starter Jocko Homo
  • Start date
  • #1
133
0

Main Question or Discussion Point

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!
 

Answers and Replies

  • #2
chiro
Science Advisor
4,790
132
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.
 
  • #3
103
0
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.
 
  • #4
AlephZero
Science Advisor
Homework Helper
6,994
291

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

Replies
7
Views
900
  • Last Post
Replies
1
Views
2K
Replies
2
Views
629
  • Last Post
Replies
1
Views
2K
  • Last Post
Replies
1
Views
4K
Replies
2
Views
1K
Replies
4
Views
4K
Replies
18
Views
9K
Top