Due to my future course in Computer Science, I’m now going to start learning Java.
I’ve been teaching myself C# and some C++ up until now, so I’m gonna switch to Java.
Just trying to think about what that’ll involve, and any suggestions for sites that talk about the various comparisons between C# and Java for someone moving to Java?
Much of the fundamental logical operations and the class/object system work in the same way, and without the need for pointers or the need for more memory management, like in C++, which is great. The comparisons between the framework are the most important I think.
Also reckoning on switching to a Mac and running Java that way.
This from Wikipedia:
“Both C# and Java are designed from the ground up as object oriented languages using dynamic dispatch, with syntax similar to C++ (C++ in turn derives from C). Neither language is a superset of C or C++, however. Both mainly use garbage collection as a means of reclaiming memory resources, rather than explicit deallocation of memory (though C# requires explicit deallocation for graphical, GDI+ objects, in which case it uses the IDisposable interface). Both include thread synchronization mechanisms as part of their language syntax.”
Here is a great article highlighting pros and cons of Java vs. C#:
http://www.veridicus.com/tummy/programming/java_vs_csharp.asp
And this one gives the syntactical differences for the same features:
http://www.harding.edu/fmccown/java_csharp_comparison.html
However, as a beginner, I think you will find that the languages are quite similar. C# may come in handy later, so rather than thinking of yourself as “moving” to Java, consider learning both.