learning java from c++

i took c++ for a semester, i will admit i was not very good with classes and the object oriented part of programming. I am looking to learn java to increase my knowledge, do you guys have any good books or online guides that use c++ as a base rather than starting from scratch?

or is the latter an easier way? (of course subjective but perhaps there is a concensus)

thanks!
Java is object oriented programming- there is no way around it. Every file you make is a class.

I recommend this: http://www.javabeginner.com/learn-java/introduction-to-java-programming

Follow the navigation on the left side of the page.

Most of the concepts are the same as C++. Just the syntax is different.

For example..

cout << "Hello world" << endl;
is the same as
System.out.println("Hello world");

The concepts are exactly the same. Once you learn the different syntax, it gets much easier. The fact that classes are unavoidable in Java actually makes things far easier in the long run.
Topic archived. No new replies allowed.