c++ vs Java:
Ok and about about to start learning Java on my own. I am very familiar with C++ but that a C are the only languages I know. I understand Java is more flexible and markable. How close are Java and C++? Will I have a huge learning curve? What can I do with Java that I cannot do with c++?
For the record I have googled this question so I know it can go in a lot of different directions. So I will ask some more direct questions:
- What are a few books to start with to really learn how to program in Java?
- What are some sites I can look at to do some real problem solving in Java when I get to that level?
- What advice do you have for a guy who likes C++ (because I only know it) and is moving into Java?
Re: c++ vs Java:
C++ is more powerful in that you have multiple inhertance of implementation, operator overloading, direct physical macgine control and yadda, yadda, yadda; Java is more convenient because you have explicit type interfaces, no hidden trickery-dickery (ignoring garbage collection) and there only is an abstract machine (ignoring JNI for the moment); pick your choice.
Re: c++ vs Java:
(I don't know what "markable" is and neither does my spellchecker). In language: quite similar. In platform: 100% different since one is native and the other is virtual machine based. I went the same way you did (C -> C++ -> Java); you'll be just fine as long as you don't want to start programming C++ in Java. Better spend a good deal of time learning the Java environment; to start with learning the common code formatting rules.
Originally Posted by jocdrew21
Code Conventions for the Java Programming Language: Contents