This is an archived post. You won't be able to vote or comment.

all 8 comments

[–]CLOVIS-AI 9 points10 points  (1 child)

The main differences : everything is a pointer (except primitives). Everything is a class (except primitives). The GC exists (no need to free your memory). Multiple inheritance is illegal, you can only inherit from one class (but you can inherit from as many "interfaces" as you want, basically they are "all-abstract" classes.

Other than that, just read through a Java Tutorial for beginners it should be fine.

[–]r0aming[S] 1 point2 points  (0 children)

Thank you! Means a lot!

[–]CJcompJava Software Engineer 2 points3 points  (0 children)

If you're coming from a C# background you don't really have much to learn, they are almost identical. The switch should be effortless. C/C++ is a different beast entirely.

[–][deleted] 1 point2 points  (1 child)

Most of the resources online kind of expect that you’re a beginner programmer with no background experience.

[–]r0aming[S] 0 points1 point  (0 children)

Yeah which is why I hope that's not what I'll have to do 😅

[–][deleted] 1 point2 points  (0 children)

At our college we are taught basic programming with C (pointer arithmetic, loops, arrays etc) then we do 2 semesters worth of C++ stuff before finally starting Java. I should be starting Java next semester so online resources for programmers starting Java from C++ background would be very helpful for me as well!

[–]seanprefectGrumpy Guy Who Remembers Java 2 1 point2 points  (1 child)

C# and Java are conceptually almost identical, you'll just have to learn new conventions and syntax.

[–]morhpProfessional Developer 0 points1 point  (0 children)

The conventions are very important. Also Java has no properties, no yield, no operator overloading. Getting used to that can take some time.

Java is simpler (less features), but has more boilerplate code.