Getting started with java interview questions ( Varargs in java ) || case 1

Sdílet
Vložit
  • čas přidán 8. 04. 2018
  • In this video we are going to learn, what happens when JVM found two different overloaded method one with var-args type argument and another with a normal argument.when two different overloaded methods can do the same task, which method is going to get the priority by JVM and will execute. We are going to understand it with an example.
    Note: varargs type method in java always get the last priority by JVM and JVM always looks for an exact match.
    This is one of the most import things to understand and we will be covering more questions on this in the feature tutorial as it’s important java interview question.
    Stay tuned and like my Facebook page for more.
    / seleniumexpress
    Music :
    -----------
    credits : -
    (intro)
    1)
    Adventures by A Himitsu / a-himitsu
    Creative Commons - Attribution 3.0 Unported- CC BY 3.0
    creativecommons.org/licenses/b...
    Music released by Argofox • A Himitsu - Adventures...
    Music provided by Audio Library • Adventures - A Himitsu...
    2)
    NCM Epic Music Ender Guney
    / ncmepicmusic
    -----
    intro template :
    wczcams.com/users/Alexbau01

Komentáře • 3

  • @jvsnyc
    @jvsnyc Před 3 lety

    Very cool. Some people recommend "Please don't do this! Mixing overloads and varargs is a bad thing--too confusing." They are probably right but it is still great to know this for interviews, for tests, and for reading code written by Bad People.

  • @santoshkumarsahoo1103
    @santoshkumarsahoo1103 Před 5 lety

    Nice.... Please make a video on Spring JDBC and Spring Transaction in depth and with suitable use cases....

  • @preemajoy8392
    @preemajoy8392 Před 5 lety

    Please add a video crud in spring mvc with all field checkbox,image etc