Day 94 | Method overriding Question | #Java

preview_player
Показать описание
The correct answer is : 10

#java #corejava #javacertification #javaprogramming #learnjava #interview #javaquestions #javatutorial #scjp #javainterviewquestions #javaprogramming #springboot #Guesstheoutput #javamethods #javamethodoverriding Java method overriding
Java method overloading

Please like share Subscribe
thanks
Рекомендации по теме
Комментарии
Автор

Ans .10
Because it follows WAV
Widening(nearest) Autoboxing(wraper classes) Var args

Viratvenky
Автор

10.
Didn't override due to to difference in parameter types of methods. Treated as special method. of Test.

tech__drao
Автор

correct me if my answer is incorrect

get(int a) from Demo and get(Integer a) are method overloading. But in case of method overloading, during compile time java determines which method to execute using object reference instead of the object type.

so first it is going to check inside the Demo (super class/object reference) and see if the function get() is there. since it is there, it executes that during the run time.

so the answer is 10

raveendharmasiri
Автор

10
Because in 2nd get method can't write correct data type then 1 will get execute

swapnilsutar
Автор

Out of the wrapper type, answer is 10

akbarhuseynli
Автор

Nenga enna daily shorts video podala?

KalaiArasi-zh
Автор

This Object creation for >> parents réf value. And child 'name .>>> Upper answer.isa 10.... First statement belongs to non primitive data type second statement..isa wrapper classes object....❤🎉 thank you for allll.. merc...

Sciencehope
Автор

In methods object reference takes the priority so 10 is the answer

ardalagopikrishna