dvas0004 / NerdNotes

A collection of notes: things I'd like to remember while reading technical articles, technical questions I couldn't answer, and so on.
12 stars 0 forks source link

Java overloaded methods #72

Open dvas0004 opened 5 years ago

dvas0004 commented 5 years ago

Overloaded methods depend only on the method signature (i.e. the name and parameter list)... so if the parameters are the same but return type is different - there will be a compilation error (not enough for compiler to tell methods apart)