Constructor Concept and This Keyword in Java

แชร์
ฝัง
  • เผยแพร่เมื่อ 5 ก.ย. 2024
  • In this video, you will learn about what is constructor and what is the purpose of this keyword in Java.
    Learn:
    1. What is Constructor and Constructor overloading
    2. Why we use this keyword
    3. Class var v/s Global Variables
    Note: This is my classroom Training Video.
    ~~~Subscribe to this channel, and press bell icon to get some interesting videos on Selenium and Automation:
    www.youtube.co...
    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/...
    WebServices API Automation Tutorials:
    vimeo.com/onde... Subscribe to this channel, and press bell icon to get some interesting videos on Selenium and Automation:
    www.youtube.co...
    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/...
    Paid courses (Recorded) videos:
    Java & Selenium Course: www.naveenautom...
    API Course: www.naveenautom... ➡️Get Our Courses✔️
    📗 Get My Paid Courses at
    Paid courses (Recorded) videos:
    Java & Selenium Course: www.naveenautom...
    API Course: www.naveenautom...
    -------------------------------
    ✔️SOCIAL NETWORKS
    Facebook: / naveenqtpexpert
    Twitter: / naveenkhunteta
    Blog: www.naveenautom...
    --------------------------------
    Support My Channel✔️Or Buy Me A Coffee
    Paypal: paypal.me/nave...
    Google Pay: naveenanimation20@gmail.com
    --------------------------------
    ✔️Thanks for watching!
    देखने के लिए धन्यवाद
    Благодаря за гледането
    感谢您观看
    Merci d'avoir regardé
    Grazie per la visione
    Gracias por ver
    شكرا للمشاهدة

ความคิดเห็น • 63

  • @ksdnsdkumar1375
    @ksdnsdkumar1375 2 ปีที่แล้ว +2

    @02:37 Default Constructor
    @07:15 Constructor overloading/parameterized constructor
    @9:02 calling constructor overloading
    @12:43 Initializing class variables using constructor/usage of "This" keyword
    @17:43 Alternative to "This" keyword
    @20:07 | @34:31 | @40:16 Printing values of class variables using objects.
    Skipped topics in the video: no-args constructor.

  • @isuryakant9921
    @isuryakant9921 5 หลายเดือนก่อน +1

    You explained it deeply so there is no any doubt
    Anymore 😅

  • @deepikaghone3058
    @deepikaghone3058 4 ปีที่แล้ว +1

    Extremely helpful videos , its easy to learn and implement...Thanks a ton for sharing...Keep sharing

  • @rakesh3020
    @rakesh3020 5 ปีที่แล้ว +1

    very good session was lot helpful,clean and clear presentation ................

  • @swetagupta8177
    @swetagupta8177 6 ปีที่แล้ว +2

    Very Informative..great explanation. thanks

  • @truthlover3522
    @truthlover3522 6 ปีที่แล้ว +5

    Hi Naveen, It would be great if you can make a video on QA effort estimation techniques for both (Functional and Automation ) , these questions are asked in interview , as you have a great knowledge and art of explaining nitty-gritty of subject., Thanks

  • @jagannath.s.h1101
    @jagannath.s.h1101 5 ปีที่แล้ว +2

    Thank you so much for your all videos.. Naveen😊... You are the best!!!

  • @santhoshk5157
    @santhoshk5157 6 ปีที่แล้ว +3

    Really awesome and well explained sir..

  • @ashwinikunapareddy2773
    @ashwinikunapareddy2773 4 ปีที่แล้ว +3

    Perfect explanation 🙏

  • @saiadaikappan
    @saiadaikappan 4 ปีที่แล้ว +2

    I gained lot of knowledge from you..thank you for creating videos Naveen bro :)

  • @monicagoyal8225
    @monicagoyal8225 2 ปีที่แล้ว +1

    Thank you so much Naveen. After watching videos on constructor ,today I got all my doubts clear.May god bless you with all the knowledge !!!!!

    • @monicagoyal8225
      @monicagoyal8225 2 ปีที่แล้ว

      Hi Naveen, need your help,I followed your video " how to read excel file" in DDF.You have shared a utility as well there but when I copied it to my class, I am getting error and not able to resolve due to my limited knowledge on java codes. Can you pls reshape on let me know where I can get it from?Regards

    • @ashutoshkumarchatarkar8965
      @ashutoshkumarchatarkar8965 2 ปีที่แล้ว

      hii monica

  • @lavanyaganti2715
    @lavanyaganti2715 3 ปีที่แล้ว +1

    Very clear explanation. Thank you naveen

  • @rajap900
    @rajap900 5 ปีที่แล้ว +2

    Hi Naveen,
    Can you please explain on top of selenium web driver, how to create web driver instance using a constructor in class for every page in real time?

  • @jdhung
    @jdhung 4 ปีที่แล้ว +1

    excellent tutorial

  • @dhrutisundarbiswal5150
    @dhrutisundarbiswal5150 5 หลายเดือนก่อน

    I have a question ,since by using this keyword in side the 3rd constructor we are assigning local variables value to global variable Name and age, can we call directly and see there value by using C.name and c.age ?

  • @sureshsubramaniyan3201
    @sureshsubramaniyan3201 5 ปีที่แล้ว +1

    It is really interesting and able to understand the most important thing way of presentation is great.Thank you..

  • @satyaanweshi
    @satyaanweshi 4 ปีที่แล้ว +4

    the explanation is extremely good Navin, the concept of constructors is super clear for me now.thanks :)

  • @roda1241
    @roda1241 3 ปีที่แล้ว +1

    Thank you very much, Naveen! Your explanations are very clear.

  • @arabindamohanty2190
    @arabindamohanty2190 4 ปีที่แล้ว +4

    I understood the concept thanks a lot

  • @ranamitul3200
    @ranamitul3200 5 ปีที่แล้ว

    Naveen is the best for java.

  • @RajuSingh-lt8cd
    @RajuSingh-lt8cd 4 ปีที่แล้ว

    Super clarity .Well explained.Thanks Naveen.

  • @karthikchalla4742
    @karthikchalla4742 6 ปีที่แล้ว +4

    Hi what is the use of constructors ?
    and why do we use them in JAVA and Selenium ?
    I understood the concept and wrote the notes and executed the code
    Thanks In Advance

    • @SiddharthTheRock
      @SiddharthTheRock 6 ปีที่แล้ว

      I am also having same query.

    • @sharankonka7701
      @sharankonka7701 5 ปีที่แล้ว +3

      Constructor is used to initialize an object. So each time when you create an object of class you are internally using constructor to create an object. Ex : if the class name is A, then to create object class of this class you will doing as follows... A a = new A(); correct?? Here A() is constructor (Which you wrote after new keyword)

    • @karthikchalla4742
      @karthikchalla4742 5 ปีที่แล้ว

      @@sharankonka7701 Thank you so much

  • @amaljoy7003
    @amaljoy7003 2 ปีที่แล้ว

    Thank you very much for the videos. It really helped me to understand the concept.

  • @MohitGupta-iu2zy
    @MohitGupta-iu2zy 5 ปีที่แล้ว +1

    Hi Naveen, Can you please post one video for encapsulation.

  • @srinivasunites
    @srinivasunites 6 ปีที่แล้ว +3

    Hi Naveen the 27 java classes by you are enough for selenium to work in real time also?? Pls respond

    • @RahulJha-bu7cv
      @RahulJha-bu7cv 5 ปีที่แล้ว +8

      I must say its more than enough and not because of 27 classes, its because the way Naveen has explained.
      With his video tutorial I understood existing framework and already automated few modules of my project in last one month. Received appreciation from customer and they never get to know when I joined my project I was having no knowledge of java and selenium. Big thanks to Naveen. Go for all these videos you will be thankful to Naveen for entire life like me.

    • @prakashvish3988
      @prakashvish3988 3 ปีที่แล้ว

      @@RahulJha-bu7cv very useful words bro thank u 🙏

  • @Kalaiarasan_Balu
    @Kalaiarasan_Balu 6 ปีที่แล้ว

    It's crystal clear..... well explained

  • @sobharanirajarani2007
    @sobharanirajarani2007 6 ปีที่แล้ว +1

    Hi naveen. How can u handle windows popup.. Did u uploaded that vedio.. I searced it.. I didn't get that vedio

  • @surakshajiddewar4298
    @surakshajiddewar4298 3 ปีที่แล้ว

    Hi Naveen. Thanks for giving lots of knowledge. I also want to understand >> what is private and protected constructor. It would be great if you will make video on it.

  • @senthilkumarmuneeswaran3505
    @senthilkumarmuneeswaran3505 5 ปีที่แล้ว

    Hello Naveen,
    wow, very well explained. Nice videos to Learn Java & Selenium.

  • @sindhusudhakaran1731
    @sindhusudhakaran1731 3 ปีที่แล้ว +1

    Thank you

  • @sAlam-ek8uw
    @sAlam-ek8uw 5 ปีที่แล้ว +1

    Hi Naveen u are the best!!!!!

  • @InderjeetSingh-rn3ds
    @InderjeetSingh-rn3ds 3 ปีที่แล้ว

    You are Awesome -> Naveen. Great Practical explanation of constructor :)

  • @LLakh
    @LLakh 5 ปีที่แล้ว

    Excellent explanation. God bless u.. Can u please create a video of scanner class.

  • @vijaykumar-ce4cd
    @vijaykumar-ce4cd 3 ปีที่แล้ว

    Hi Naveen,
    We can call class variables with class name & Object creation ..then. Y we need constructor here.. i heared if will create object of that class by default constructor will call .. Am not understood why we need constructor ? & what is the use of Constructor? Can you please explain clearly..

  • @RajuSingh-lt8cd
    @RajuSingh-lt8cd 5 ปีที่แล้ว

    Excellent sir

  • @2mahender
    @2mahender 6 ปีที่แล้ว

    HI Naveen, i need help in automating one scenario,,,..there is a page with multiple listboxes and text boxes, i need to test the page by populating each value,basically i need to validate all combinations. can you suggest any ideas?

  • @nitinyadav-ul3ve
    @nitinyadav-ul3ve 4 ปีที่แล้ว

    Hi sir.....after tutorial no 15 I want to know the flow of tutorials which one is coming first'

  • @theglorioussapphiremonkey4750
    @theglorioussapphiremonkey4750 4 ปีที่แล้ว

    Are we allowed to use private variable in constructors?

  • @parimalaadevi6459
    @parimalaadevi6459 4 ปีที่แล้ว +1

    @ naveen automation. Are you running any paid class regarding java and selenium I want to join

  • @Shradha6979
    @Shradha6979 6 ปีที่แล้ว

    Make video on PYTHON with SELENIUM...

  • @priyankathakur-amu
    @priyankathakur-amu 6 ปีที่แล้ว

    Could uh pls upload a video on collections in java ?

  • @barskzltas7276
    @barskzltas7276 2 ปีที่แล้ว

    Hi naveen Can you add english subtitle?

  • @gn8167
    @gn8167 5 ปีที่แล้ว

    You missed one thing about this keyword - i,e calling constructor inside constructor

  • @spkadekodi
    @spkadekodi 11 หลายเดือนก่อน

    Hi Naveen, don't think you even need to say "If you like my video" at the and I guess its by default that everyone loves your teaching lol. My two cents.

  • @mariabajwa8632
    @mariabajwa8632 6 ปีที่แล้ว +2

    thank you