Java Interview Shorts 15 - Method Overloading : When to use it in Java ? #javainterview

preview_player
Показать описание

#javainterview #javainterviewquestions #corejava #methodoverloading
Рекомендации по теме
Комментарии
Автор

Great content keep going plz do not stop sir

nullpointer
Автор

damn I didn't even realise that println is an overloaded function

SaahilShaikh
Автор

Having multiple methods with same method name and different signature (type of arguments, no of arguments, order of occurances) in the same class.

nareshKumar-ejnk
Автор

Another reson is Implementing one of major concept oops "polymorphism"

abineshcoder
Автор

I did ask gpt.
Legacy support(add extra feature to existing)
e.g println(x, formattobeprinted);// this featured doesn't exist by default.

sivalokesh
Автор

When number of inputs are not sure
When type of inputs are not sure

TheRajraj
Автор

Abhi, can u tell that one more method?

santhoshchandran
Автор

Separate method for every datatypes then what about multiple combinations of datatypes in single method?

checkthisout