Jude Niroshan wrote:
Arguments are passed by value. All objects must be used through a reference.
There is no such thing as "pass-by-reference" in Java.
Just to clear up any confusion, by "All objects must be used through a reference" I was referring to the fact that you can not use them as if they were 'structs'. All variables of a reference type actually store a pointer.
I think one of my favorite differences is... no header files, or messing with circular dependencies! God, forward declarations could be a real pain in the backside.