Property ------------------- OverLoading -------------------- Override
Method names --------------> must be the same --------------------> must be the same
Arg types ------------------> must be different (atleast arg) ----> must be the same (including order)
Method signature -----------> must be different (atleast arg) ----> must be the same (including order)
Return Type ----------------> No limit -------------------> No limit
Private, static, final -------> No limit --------------------> Must be the same
Access modifier ------------> Unlimited -------------------- Same
try / Catch -----------------> No Restriction -------------------- Exception thrown
Method resolution --------> Compiler time (link) -------- (JVM) Runtime pimorphism
Jaichander
source share