Skip to Main Content

Java HotSpot Virtual Machine

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Best way for Java programmer to learn C++?

843829Dec 13 2002 — edited Dec 19 2002
Sorry if this is a bit off-topic but I didn't know where else to post this. I've been writing Java for about 2 years now and love it. I do however need to do some things in C++ via JNI but I know absolutely nothing about C or C++.

So, my question is, what books and resources are recommended for teaching C++ to a Java programmer?

Additionally, should C be learned before C++? I know that C++ is based on C but I found the folliwng on http://www.parashift.com/c++-faq-lite:
If your ultimate goal is to learn C++ and you
don't already know C, reading books or taking
courses in C will not only waste your time,
but it will teach you a bunch of things that
you'll explicitly have to un-learn when you
finally get back on track and learn OO/C++
(e.g., malloc(), printf(), unnecessary use
of switch statements, error-code exception
handling, unnecessary use of #define macros,
etc.).
I already know about programming and OOP so I don't need a beginners book that introduces these concepts with silly analogies (ala "Idiot's Guides" or "Teach yourself C in 24 Hours"). I'd be more interested in an in-depth, down-to-business type book (ala O'Reilly).

Finally, I'm quite spoiled because I rely heavily on javadocs and this forum. Are there any similar resources for C++? I haven't found any good ones yet.

Please let me know what you think, thanks!
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jan 16 2003
Added on Dec 13 2002
5 comments
141 views