Are parameters in methods passed in the same way as C #? (Copied for reference types)
All primitive types are copied, all objects actually point to objects, the pointer is copied, but the actual object is not copied.
Why did the @Override attribute suddenly appear (I think this is Java 1.5+?)
This is not the case since Java 1.6 you can also use it to show that a method implements an interface. @Override allows you to tell the compiler that you think you are overriding a method, the compiler will warn you when you do not (this is very useful, especially if the superclass changes)
How can you compile applications if you lack the dependency for one of the libraries you are using?
I do not think so.
I need to worry about using + = to concatenate large strings (e.g. using StringBuilder)
In some cases. The Java + VM compiler is great for automatically using StringBuilder for you. However, this will not always be so. I will not optimize this (or anything) in advance.
Does Java have operator overloading: equals () or == by default should be used. Basically this object.equals is about the same as C # (reflection for value types, address link for reference types)
No, he has no operator overload.
source share