Method overloading Ambiguity | Java tricky questions | TechstackJava

Published: 11 July 2020
on channel: Tech Stack Java
1,507
60

#javainterviewquestions #methodoverloading #techstackjava

🔥100% Java Tricky Questions for dummies to experts - To solve tricky java questions in one go.🔥

TABLE OF CONTENTS 📕:-

🏋🏻 - Little background of how you pass argument, how jvm find exact match from overloaded methods - 0:06
🏋🏻 - Direct jump to Question no. 1 : of this video - 1:08
🏋🏻 - Reason of Output of Question no. 1 - 1:42
🏋🏻 - Question no. 2 - 2:34
🏋🏻 - Reason of Output of Question no. 2 - 3:25

✅ BEAUTIFUL STORY EXAMPLE TO REMEMBER ABOVE ✅

🧑🏼‍🤝‍🧑🏼 - Story of Dr. Rajveer and his family - 4:30


OVERALL- This video explains about method overloading with some special cases.
✍️ - Basic of Method overloading with exact match argument.
✍️ - Then Method overloading with string and Object argument.
✍️ - Then Method overloading with String, StringBuffer & Object argument.

Generally in an interview room, Interviewer tries to make you confuse by putting diff-diff arguments in you methods of overloading and checks, How much strong you are in these topic.

------------
This is sometime asked by Tricky Method Overloading, below are the similar headings:-

✅- How is ambiguous overloaded method call resolved in java?
✅ - What is Method overloading and null error in Java?
✅ - What is String and StringBuffer overloaded methods?
✅- How is an overloaded method chosen when a parameter is the null value?

------


These questions are also called tricky interview questions in overloading. If you prepare all these cases before any interview, No body can reject you at least in this topic.

⌚️ I will try if I could I come up with more cases to make your concepts clear.

Thanks,
#Java, #Overloading, #TrickyInterviewQuestions


On this page of the site you can watch the video online Method overloading Ambiguity | Java tricky questions | TechstackJava with a duration of hours minute second in good quality, which was uploaded by the user Tech Stack Java 11 July 2020, share the link with friends and acquaintances, this video has already been watched 1,507 times on youtube and it was liked by 60 viewers. Enjoy your viewing!