Загрузка страницы

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
Показать
Комментарии отсутствуют
Введите заголовок:

Введите адрес ссылки:

Введите адрес видео с YouTube:

Зарегистрируйтесь или войдите с
Информация о видео
15 марта 2021 г. 20:29:29
00:04:19
Другие видео канала
Interview Question: How many String Objects will be created? - String Objects & String Constant PoolInterview Question: How many String Objects will be created? - String Objects & String Constant PoolInterview Question: Will Static block be executed with final variable?Interview Question: Will Static block be executed with final variable?Find Duplicate Elements from list using Java 8 | Java 8 coding Interview Questions | Code DecodeFind Duplicate Elements from list using Java 8 | Java 8 coding Interview Questions | Code DecodeSDET Interview (3 to 8 YOE): Tell Me About Your Experience & Current Roles/ResponsibilitiesSDET Interview (3 to 8 YOE): Tell Me About Your Experience & Current Roles/ResponsibilitiesWhy String is Immutable and Final in Java?Why String is Immutable and Final in Java?Must Have Automation Tools In Your Bucket |Automation Tech Stack For Beginners |Manual to AutomationMust Have Automation Tools In Your Bucket |Automation Tech Stack For Beginners |Manual to AutomationImportant Sure Shot Trick To Crack SDET Interviews || Be Different From OthersImportant Sure Shot Trick To Crack SDET Interviews || Be Different From OthersGIT workflow, Branching, PULL Request, Merge, Push, PULL, Fetch - Whiteboard LearningGIT workflow, Branching, PULL Request, Merge, Push, PULL, Fetch - Whiteboard LearningJava Mock Interview - Java interview questions and answers for experienced | Top Spring Boot QNAJava Mock Interview - Java interview questions and answers for experienced | Top Spring Boot QNAHow To Explain Test Automation Framework In Interviews For SeleniumHow To Explain Test Automation Framework In Interviews For Selenium#10 - How HashMap works internally || Popular java interview question on collection (HashMap)#10 - How HashMap works internally || Popular java interview question on collection (HashMap)Interview Question: Print 1 to 100 Without Using for/while/do-while Loop in Code || Using RecursiveInterview Question: Print 1 to 100 Without Using for/while/do-while Loop in Code || Using RecursiveString Interview Question: Count the occurrences of a character in a StringString Interview Question: Count the occurrences of a character in a StringTop 10 Static & Instance Block Based Interview Questions || Tricky Java Interview QuestionsTop 10 Static & Instance Block Based Interview Questions || Tricky Java Interview QuestionsGet the Count of Words From a Capitalized String - Java Interview QuestionGet the Count of Words From a Capitalized String - Java Interview QuestionCheck if Substring is Present in a Given String - Java Interview QuestionCheck if Substring is Present in a Given String - Java Interview QuestionJava Interview Question: How to find length of string in java without using length method?Java Interview Question: How to find length of string in java without using length method?Important Interview Question: How to Print count of duplicate characters from String? || #HackerrankImportant Interview Question: How to Print count of duplicate characters from String? || #Hackerrank
Яндекс.Метрика