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

  Рет қаралды 59,739

Naveen AutomationLabs

Naveen AutomationLabs

Күн бұрын

Question: Can we overload a main() method in Java?:
Answer: Yes, you can 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.
~~~~Subscribe to this channel, and press bell icon to get some interesting videos on Selenium and Automation:
kzbin.info%20Au...
Follow me on my Facebook Page:
/ naveenqtpexpert
Let's join our Automation community for some amazing knowledge sharing and group discussion on Telegram:
t.me/joinchat/COJqZQ4enmEt4JA...
vimeo.com/ondemand/webservice... Subscribe to this channel, and press bell icon to get some interesting videos on Selenium and Automation:
kzbin.info%20Au...
Follow me on my Facebook Page:
/ naveenqtpexpert
Let's join our Automation community for some amazing knowledge sharing and group discussion on Telegram:
t.me/joinchat/COJqZUPB02r5sB7...
Paid courses (Recorded) videos:
Java & Selenium Course: www.naveenautomationlabs.com/p...
API Course: www.naveenautomationlabs.com/p... ➡️Get Our Courses✔️
📗 Get My Paid Courses at
Paid courses (Recorded) videos:
Java & Selenium Course: www.naveenautomationlabs.com/p...
API Course: www.naveenautomationlabs.com/p...
-------------------------------
✔️SOCIAL NETWORKS
Facebook: / naveenqtpexpert
Twitter: / naveenkhunteta
Blog: www.naveenautomationlabs.com
--------------------------------
Support My Channel✔️Or Buy Me A Coffee
Paypal: paypal.me/naveenkhunteta
Google Pay: naveenanimation20@gmail.com
--------------------------------
✔️Thanks for watching!
देखने के लिए धन्यवाद
Благодаря за гледането
感谢您观看
Merci d'avoir regardé
Grazie per la visione
Gracias por ver
شكرا للمشاهدة

Пікірлер: 37
@merfu.uighur5996
@merfu.uighur5996 3 жыл бұрын
you are born as teacher Naveen ,can not be more clear and to the point!thank you so much!
@saurabht09
@saurabht09 3 жыл бұрын
Naveen is a special person for all Automation engineers. No one can explain any topic like him.. Keep growing and helping all :)
@naveenautomationlabs
@naveenautomationlabs 3 жыл бұрын
Thanks brother 🙏☺️ keep motivating like this.
@Driverforcash
@Driverforcash Жыл бұрын
Very Clear concise but at same time detailed video. Thanks Naveen Sir !
@muppapavankumar2124
@muppapavankumar2124 6 жыл бұрын
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?
@praneethchakri7052
@praneethchakri7052 6 жыл бұрын
Thanks Naveen..it was informative.!
@andyrockstar78
@andyrockstar78 5 ай бұрын
Thanks so much Naveen for this.
@prasannamaithili8231
@prasannamaithili8231 3 жыл бұрын
Thank you so much Naveen. Very much useful
@anilleo18
@anilleo18 6 жыл бұрын
great naveen...can u please post one multithreading video aswell
@PRIYAGUPTA-dr1nr
@PRIYAGUPTA-dr1nr 5 жыл бұрын
thank you ..you helped me a lot
@vfwrgn7vj4
@vfwrgn7vj4 4 жыл бұрын
Easy explanation. thanks
@santhoshk8095
@santhoshk8095 6 жыл бұрын
thank you sir.. nice video..
@OptionTrader_dB
@OptionTrader_dB 5 жыл бұрын
great
@sumanthzvakacharla6079
@sumanthzvakacharla6079 6 жыл бұрын
Can we automate angular js based web apps using selenium?
@LilMoonLightShine
@LilMoonLightShine 6 жыл бұрын
Hi... Can you let me know about mobile automation testing online course.
@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
@tenapallipriya3096
@tenapallipriya3096 3 жыл бұрын
@naveen can you please write a program to segregate positive and negative numbers in array
@prikshitverma3885
@prikshitverma3885 3 жыл бұрын
Why we use string array in main method? Why not int or any other type of arrays?
@ashutoshanand9906
@ashutoshanand9906 6 жыл бұрын
Can we override the same main method?
@varshpravin946
@varshpravin946 6 жыл бұрын
Sir, do WebDriver Interface have any super Interface which is implemented by WebDriver???
@juniorbroddy521
@juniorbroddy521 6 жыл бұрын
yes SearchContext
@namratayadav7721
@namratayadav7721 5 жыл бұрын
how to acess course ful
@neha7980
@neha7980 3 жыл бұрын
Can we override?
@dileepks2319
@dileepks2319 2 жыл бұрын
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 жыл бұрын
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.
@vigneshkumar5980
@vigneshkumar5980 Жыл бұрын
what if class A extends class B, will main method get overridden? if not, how come?
@sachin21890
@sachin21890 6 жыл бұрын
Can we have two methods with same name, same arguments but different return types ?
@naveenautomationlabs
@naveenautomationlabs 6 жыл бұрын
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
@jatinsharma3792
@jatinsharma3792 2 жыл бұрын
Stack Overflow best Exp.
@shilpasg1194
@shilpasg1194 3 жыл бұрын
Hi Naveen, Can we write Java program without main() method?
@harithasri8372
@harithasri8372 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
@vfwrgn7vj4
@vfwrgn7vj4 4 жыл бұрын
Easy explanation. thanks
Why String is Immutable and Final in Java?
19:59
Naveen AutomationLabs
Рет қаралды 87 М.
Can we override a static method in child class? || Famous Interview Question
14:46
Smart Sigma Kid #funny #sigma #comedy
00:40
CRAZY GREAPA
Рет қаралды 34 МЛН
UNO!
00:18
БРУНО
Рет қаралды 3,6 МЛН
ТЫ С ДРУГОМ В ДЕТСТВЕ😂#shorts
01:00
BATEK_OFFICIAL
Рет қаралды 7 МЛН
This and Super keywords with Constructor Examples In Java
57:03
Naveen AutomationLabs
Рет қаралды 83 М.
#52 Method Overriding in Java
7:57
Telusko
Рет қаралды 125 М.
Abstract Class in Java and Usage in Selenium
21:14
Mukesh otwani
Рет қаралды 26 М.
Method Overloading In Java Tutorial #93
6:54
Alex Lee
Рет қаралды 27 М.
Difference between Interface and Absract Class
30:52
Naveen AutomationLabs
Рет қаралды 179 М.
What is Static and Non-Static in Java - CoreJava Part - 10
11:47
Naveen AutomationLabs
Рет қаралды 127 М.
Что делать если в телефон попала вода?
0:17
Лена Тропоцел
Рет қаралды 3,6 МЛН
Ускоряем ваш TV🚀
0:44
ARTEM_CHIBA
Рет қаралды 539 М.
Bluetooth connected successfully 💯💯
0:16
Blue ice Comedy
Рет қаралды 2,3 МЛН
Мой новый мега монитор!🤯
1:00
Корнеич
Рет қаралды 4,2 МЛН
Rate This Smartphone Cooler Set-up ⭐
0:10
Shakeuptech
Рет қаралды 7 МЛН