Tricky Interview Question : Pass null argument with method overloading of String and Object types
In this video, I have explained one tricky java interview question: Interview Question : Pass null argument with method overloading with String and Object types
In the case of null, null is valid for both string and object. So, which method will be called?
Object is a parent class and string is a child class. While resolving the overloading method, the compiler always uses the presidency for the child type argument. So, the compiler will call the method with the string argument.
~~~Subscribe to this channel, and press bell icon to get some interesting videos on Selenium and Automation:
https://www.youtube.com/c/Naveen%20AutomationLabs?sub_confirmation=1
Follow me on my Facebook Page:
https://www.facebook.com/groups/naveenqtpexpert/
Let's join our Automation community for some amazing knowledge sharing and group discussion on Telegram:
https://t.me/joinchat/COJqZUPB02r5sB73YMdXEw
Naveen AutomationLabs Paid Courses:
Java & Selenium:
http://naveenautomationlabs.com/manual-automation-testing-of-webservices-api/
Java & API +POSTMAN + RestAssured + HttpClient:
http://naveenautomationlabs.com/selenium-java-full-paid-course-recorded-videos/
Видео Tricky Interview Question : Pass null argument with method overloading of String and Object types канала Naveen AutomationLabs
In the case of null, null is valid for both string and object. So, which method will be called?
Object is a parent class and string is a child class. While resolving the overloading method, the compiler always uses the presidency for the child type argument. So, the compiler will call the method with the string argument.
~~~Subscribe to this channel, and press bell icon to get some interesting videos on Selenium and Automation:
https://www.youtube.com/c/Naveen%20AutomationLabs?sub_confirmation=1
Follow me on my Facebook Page:
https://www.facebook.com/groups/naveenqtpexpert/
Let's join our Automation community for some amazing knowledge sharing and group discussion on Telegram:
https://t.me/joinchat/COJqZUPB02r5sB73YMdXEw
Naveen AutomationLabs Paid Courses:
Java & Selenium:
http://naveenautomationlabs.com/manual-automation-testing-of-webservices-api/
Java & API +POSTMAN + RestAssured + HttpClient:
http://naveenautomationlabs.com/selenium-java-full-paid-course-recorded-videos/
Видео Tricky Interview Question : Pass null argument with method overloading of String and Object types канала Naveen AutomationLabs
Показать
Комментарии отсутствуют
Информация о видео
Другие видео канала
![Interview Question: How many String Objects will be created? - String Objects & String Constant Pool](https://i.ytimg.com/vi/AH0ZcgzWMBw/default.jpg)
![Interview Question: Will Static block be executed with final variable?](https://i.ytimg.com/vi/xmcHT8ztJXE/default.jpg)
![Find Duplicate Elements from list using Java 8 | Java 8 coding Interview Questions | Code Decode](https://i.ytimg.com/vi/aaokKp87Hoc/default.jpg)
![SDET Interview (3 to 8 YOE): Tell Me About Your Experience & Current Roles/Responsibilities](https://i.ytimg.com/vi/OGTmf5ee7bE/default.jpg)
![](https://i.ytimg.com/vi/J-hf1x6I3v0/default.jpg)
![Why String is Immutable and Final in Java?](https://i.ytimg.com/vi/1s4wciDYxqs/default.jpg)
![Must Have Automation Tools In Your Bucket |Automation Tech Stack For Beginners |Manual to Automation](https://i.ytimg.com/vi/ktIKWOiG_KM/default.jpg)
![Important Sure Shot Trick To Crack SDET Interviews || Be Different From Others](https://i.ytimg.com/vi/EtUTWdRSiuE/default.jpg)
![GIT workflow, Branching, PULL Request, Merge, Push, PULL, Fetch - Whiteboard Learning](https://i.ytimg.com/vi/6cn0c-2n6G0/default.jpg)
![Java Mock Interview - Java interview questions and answers for experienced | Top Spring Boot QNA](https://i.ytimg.com/vi/ZzJ3qkPR9WA/default.jpg)
![How To Explain Test Automation Framework In Interviews For Selenium](https://i.ytimg.com/vi/28mX8Xn_Big/default.jpg)
![#10 - How HashMap works internally || Popular java interview question on collection (HashMap)](https://i.ytimg.com/vi/SXfsBDTodpY/default.jpg)
![Interview Question: Print 1 to 100 Without Using for/while/do-while Loop in Code || Using Recursive](https://i.ytimg.com/vi/i5-0XJ2xjzc/default.jpg)
![String Interview Question: Count the occurrences of a character in a String](https://i.ytimg.com/vi/e4ALmHwQpbA/default.jpg)
![Top 10 Static & Instance Block Based Interview Questions || Tricky Java Interview Questions](https://i.ytimg.com/vi/iauIFnXyOzI/default.jpg)
![](https://i.ytimg.com/vi/M9bRILlh5nQ/default.jpg)
![Get the Count of Words From a Capitalized String - Java Interview Question](https://i.ytimg.com/vi/_RxwfolQbG4/default.jpg)
![Check if Substring is Present in a Given String - Java Interview Question](https://i.ytimg.com/vi/GyU5I1UxO2o/default.jpg)
![Java Interview Question: How to find length of string in java without using length method?](https://i.ytimg.com/vi/aN4rVr4pof4/default.jpg)
![Important Interview Question: How to Print count of duplicate characters from String? || #Hackerrank](https://i.ytimg.com/vi/UaRbZqAsoco/default.jpg)