Can we overload a main() method in Java? || Java Interview Question

Поділитися
Вставка
  • Опубліковано 18 жов 2024

КОМЕНТАРІ • 39

  • @merfu.uighur5996
    @merfu.uighur5996 3 роки тому +6

    you are born as teacher Naveen ,can not be more clear and to the point!thank you so much!

  • @saurabht09
    @saurabht09 3 роки тому +6

    Naveen is a special person for all Automation engineers. No one can explain any topic like him.. Keep growing and helping all :)

  • @muppapavankumar2124
    @muppapavankumar2124 6 років тому +5

    naveen you are doing an awesome job, it is really helpful to me and many like me. Can you post a video of collections concept?

  • @Driverforcash
    @Driverforcash Рік тому

    Very Clear concise but at same time detailed video.
    Thanks Naveen Sir !

  • @andyrockstar78
    @andyrockstar78 8 місяців тому

    Thanks so much Naveen for this.

  • @anilleo18
    @anilleo18 6 років тому +3

    great naveen...can u please post one multithreading video aswell

  • @prasannamaithili8231
    @prasannamaithili8231 3 роки тому +1

    Thank you so much Naveen. Very much useful

  • @PRIYAGUPTA-dr1nr
    @PRIYAGUPTA-dr1nr 6 років тому +4

    thank you ..you helped me a lot

  • @vfwrgn7vj4
    @vfwrgn7vj4 5 років тому +1

    Easy explanation. thanks

  • @priya-vf3jc
    @priya-vf3jc 6 років тому

    my question is regarding Xpath ... as u said in drop down session like By.id() in main()... but wen v separately save xpaths in .propertiesfile and wen v want to automate that through keywords.java class den how to use it ...
    public void choose(String objectname, String data)
    {
    Select select = new Select(driver.findElement(By.xpath(prop.getProperty(objectname))));
    select.selectByVisibleText("working"); // ???
    }
    leadstatus= //*[@id='23:3372;a']/div/a dis is how i saved in objectrepository.propertiesfile

  • @praneethchakri7052
    @praneethchakri7052 6 років тому +1

    Thanks Naveen..it was informative.!

  • @santhoshk8095
    @santhoshk8095 6 років тому +1

    thank you sir.. nice video..

  • @16_cm_bobeatharv65
    @16_cm_bobeatharv65 14 днів тому

    Which S/w or IDE are you using?

  • @prikshitverma3885
    @prikshitverma3885 3 роки тому

    Why we use string array in main method? Why not int or any other type of arrays?

  • @sumanthzvakacharla6079
    @sumanthzvakacharla6079 6 років тому +1

    Can we automate angular js based web apps using selenium?

  • @tenapallipriya3096
    @tenapallipriya3096 3 роки тому

    @naveen can you please write a program to segregate positive and negative numbers in array

  • @rinkuindia
    @rinkuindia 2 місяці тому

    can we call the main() method of same class again and again like loop?

  • @LilMoonLightShine
    @LilMoonLightShine 6 років тому +1

    Hi... Can you let me know about mobile automation testing online course.

  • @shilpasg1194
    @shilpasg1194 3 роки тому

    Hi Naveen,
    Can we write Java program without main() method?

    • @harithasri8372
      @harithasri8372 2 роки тому +2

      Yes we can, Eclipse doesnt throw any error. But we cannot execute the program.

    • @ranjitkar9802
      @ranjitkar9802 Рік тому

      We can write it but we can not execute is because jvm always look for the main method in the program if it is available then execution will start over otherwise not

  • @varshpravin946
    @varshpravin946 6 років тому +1

    Sir, do WebDriver Interface have any super Interface which is implemented by WebDriver???

  • @ashutoshanand9906
    @ashutoshanand9906 6 років тому +1

    Can we override the same main method?

  • @sachin21890
    @sachin21890 6 років тому +2

    Can we have two methods with same name, same arguments but different return types ?

    • @naveenautomationlabs
      @naveenautomationlabs  6 років тому +2

      yes we can have it.

    • @sachin21890
      @sachin21890 6 років тому

      Naveen AutomationLabs Thanks Naveen for such quick response .
      You are doing a great job

    • @kumarrdy5420
      @kumarrdy5420 6 років тому

      Hi Naveen, Can you please share sample programs.

    • @vikaspaliwal185
      @vikaspaliwal185 6 років тому

      Yes in methord ovrerridding as a covarient return typee

  • @OptionTrader_dB
    @OptionTrader_dB 5 років тому +1

    great

  • @vigneshkumar5980
    @vigneshkumar5980 Рік тому

    what if class A extends class B, will main method get overridden? if not, how come?

  • @neha7980
    @neha7980 3 роки тому

    Can we override?

  • @dileepks2319
    @dileepks2319 3 роки тому

    typically it is considered as a normal method

  • @juniorbroddy521
    @juniorbroddy521 6 років тому

    m not getting one thing...if jvm does not consider remaining three methods as main then how is it possible to call them without class?

    • @sivakrishnapotla6234
      @sivakrishnapotla6234 6 років тому +1

      hi @Damini Jurel , When we overload main method in Java. But the program doesn't execute the overloaded main method when you run your program, you have to call the overloaded main method from the actual main method.
      That means main method acts as an entry point for the java interpreter to start the execute of the application. where as a loaded main need to be called from main.

  • @jatinsharma3792
    @jatinsharma3792 2 роки тому

    Stack Overflow best Exp.

  • @namratayadav7721
    @namratayadav7721 5 років тому

    how to acess course ful

  • @vfwrgn7vj4
    @vfwrgn7vj4 5 років тому

    Easy explanation. thanks