Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What is the best approach for a Java developer to learn C++ [closed]

Tags:

java

c++

I consider myself an experienced Java developer and am planning to get started with learning C++.

If you had same experience, i.e learn C++ after Java, I would like to hear your thoughts on what is the best approach at doing this.

[Update] "the best approach" was not well quantified. What I am looking for is to leverage my existing java knowledge and programming experience so that I can quickly ramp up on C++.

like image 312
Journeyman Programmer Avatar asked Apr 25 '09 20:04

Journeyman Programmer


People also ask

Is it easy to learn C after Java?

If you want to learn the full concept behind Java then I would suggest you to learn C as well. Learning Concept of C is not very difficult. You can go through just fundamentals of C from any basic tutorials available in net. There are also may books available.

Should I learn Java or C first?

Should I Learn Java or C++ first? Most programmers agree that Java is easier to learn first. Java's syntax is usually easier for new programmers to understand.

Is C close to Java?

C is a middle-level language as it binds the bridges between machine-level and high-level languages. Java is a high-level language as the translation of Java code takes place into machine language, using a compiler or interpreter. C is only compiled and not interpreted. Java is both compiled and interpreted.

Does learning C make you a better programmer?

Learning C helps me write programs much better because I now know where memory leaks can occur or how to avoid them. I am sure is done for you in other higher-level languages but knowing this helps me optimize my program better through trying to write programs with memory in mind.


1 Answers

I've taught C++ to Java people, even though I learned them the other direction.

Are you comfortable with C? If not, read Kernighan and Ritchie. Many many peculiarities of C++ are explained by the desire for C++ to be a "Better C" with C's basic expression syntax.

You should get Stroustrup.

I think well of Thinking in C++ by Bruce Eckels.

I've used The C++ FAQ Book, by Cline, Lomow, and Girou; I refer to it pretty often. Marshall Cline has C++ FAQ content on his site, too.

Update

You might also look at C++ for Java Programmers. I don't know the book but it looks decent.

like image 63
Charlie Martin Avatar answered Oct 04 '22 03:10

Charlie Martin