Why to use Getters and Setters in Java ? Hindi

  Рет қаралды 88,002

Learn Code With Durgesh

Learn Code With Durgesh

2 жыл бұрын

In this video, I am going to explain what is setters and getters in java programming language and why to use getters and setters in java language with a practical session on Eclipse IDE.
Telegram Link for Doubt: t.me/learncodewithdurgesh
Important Videos:
➡️React JS with Project: • 🔥 🔥 Complete React Js ...
➡️Learn JDBC in one video: • JDBC Crash Course in 1...
➡️Learn Python in One Video: • Learn Python in One Vi...
➡️Learn HTML in one video: • Jquery in one video in...
➡️Learn HTML form in one video: • Jquery in one video in...
➡️Learn JavaScript in one video: • Learn JavaScript in O...
➡️Learn Form Validation using javascript and jquery: • Form Validation using ...
➡️Learn CSS in one video: • Jquery in one video in...
➡️Jquery in one video: • Jquery in one video in...
Kotlin is one video: • Kotlin | Learn Kotlin ...
➡️Complete Python Project - KZbin downloader in one video: • Jquery in one video in...
Important Playlist:
➡️Spring Boot Tutorial with Project: • Spring Boot Tutorial i...
➡️Spring MVC Tutorial: • Spring MVC Tutorial St...
➡️Complete Spring Framework Tutorial: • Spring Framework Tutor...
➡️Hibernate Tutorials: • Hibernate Tutorial for...
➡️E-Commerce Project using Java: • E-Commerce Project usi...
➡️AWS Free Java Hosting Playlist: • AWS Hosting Tutorial |...
➡️Hibernate Tutorial Playlist: • Hibernate Tutorial for...
➡️Learn Technology in One Vides: • Learn in one video : C...
➡️Programming Tips for Programmers: • Coding Tips and Discus...
➡️Complete Python for Beginners: • Complete Python Tutori...
➡️Important Python Projects: • Python Projects in Hindi
➡️Complete Servlet & JSP : • Servlet and Jsp (Serve...
➡️Complete JDBC ( Java Database Connectivity) : • JDBC(Java Database Con...
➡️Complete Java Project : TechBlog: • Full Java Advance Pro...
➡️Java Swing Projects: • Java Projects for begi...
➡️Java Core Concepts: • Java Core Tutorial
➡️Kya aap Jante hai Series: • kya app jante hai : s...
Important Links:
👉Official Website (Source Code): learncodewithdurgesh.com/
👉Telegram Discussion Group: t.me/learncodewithdurgesh
👉Follow me on Instagram: / durgesh_k_t
👉Follow on Facebook / learncodewithdurgesh
Disclaimer:
All videos are for educational purposes and use them wisely. Any video may have a slight mistake, please take decisions based on your research. This video is not forcing anything on you.

Пікірлер: 145
@bhushankothari8613
@bhushankothari8613 Жыл бұрын
Sachme Dil Se Thank You Sir, abhi Jake samjh main aaya....😅👌🏻👍🏻🙏🏻
@talhafarhat5851
@talhafarhat5851 2 ай бұрын
Thanks Sir, you cleared my concept of using getters and setters + why we use.
@rohitkushwaha6125
@rohitkushwaha6125 Жыл бұрын
Thank you so much for clearing the use of getter and setter.
@reyheelb9805
@reyheelb9805 Жыл бұрын
Thanks Durgesh for Clearing out the Concept!
@mitsixty4011
@mitsixty4011 2 жыл бұрын
Durgesh bhai maine apke videos dekh kr last week maine TCS me job nikala, apka ka bahut shukriya
@tarunpanwar6983
@tarunpanwar6983 Ай бұрын
Fek le bdi bdi
@sharuk3545
@sharuk3545 2 жыл бұрын
amazing sir,thanks for answering the question
@user-ut8xy1yx6s
@user-ut8xy1yx6s 5 ай бұрын
Video is very good , very informative , useful. I am from Australia .
@munairoy3364
@munairoy3364 2 жыл бұрын
Vedio is very good..it clear the confusion about getter and setter method.
@umairsiddique5337
@umairsiddique5337 2 жыл бұрын
Thanks ❤..aisi or bi videos latey rahiye bhut si confusions dur hjati
@ravisahu968
@ravisahu968 2 жыл бұрын
Sir kya aap ek oops concept ka use krke ek real life project bnwa skte hai chhota sa plz . huMe PTA hai oops concept but real life kese use hoge wo sb clear nhi kai concept bnwa dijiye ek project simple sa
@zomzhack
@zomzhack 2 жыл бұрын
Right 💯
@faizanahmad7157
@faizanahmad7157 2 жыл бұрын
Hn Sir
@faizanahmad7157
@faizanahmad7157 2 жыл бұрын
Bana diye sir video ek
@haroonafridi7746
@haroonafridi7746 2 жыл бұрын
Yes sir yeh sahi bol raha hai reall life me uses kaise haii aik simply sy video banao sirr
@Crazzyyy_
@Crazzyyy_ Жыл бұрын
@Ravi sahu u hv to use scanner
@user-hi5og5xn7s
@user-hi5og5xn7s Ай бұрын
Thank you for this wonderful video.
@CosmosHole
@CosmosHole 2 жыл бұрын
Thanks so much sir( i was just creating the getter n setter by just right clicking but didn't know in deep why i am do so)
@ManishKumar-cx1fs
@ManishKumar-cx1fs 2 жыл бұрын
Very nice sir, getter setter and private class variable helping to creating highly encapsulated class , and perform setter injection in spring
@sawantak
@sawantak Жыл бұрын
Kitna easy samjhate ho yar aap Thanks Durgesh bhai 🙏
@aashishchoyal9730
@aashishchoyal9730 2 жыл бұрын
Good Going Durgesh Sir... Very Explanatory 👌
@vinayghadigaonkar8215
@vinayghadigaonkar8215 2 жыл бұрын
bhai Bohot badhiya .
@JotStudyHub
@JotStudyHub 3 ай бұрын
Well explained sir 🎉
@zeeshanahmad-tx5hw
@zeeshanahmad-tx5hw 2 жыл бұрын
Very helpful video.... Great Sir
@pankajkolekar5725
@pankajkolekar5725 Жыл бұрын
This video is very helpful sir..
@srr152
@srr152 Жыл бұрын
Very good information
@sachinsolanki3165
@sachinsolanki3165 4 ай бұрын
Wonderful video 😊
@ayanrajput4518
@ayanrajput4518 Жыл бұрын
Thanks sir.... Really helpful ..
@bobbybhatta9957
@bobbybhatta9957 2 жыл бұрын
Sir i am from Nepal..love from Nepal sir i watched your all videos ❤️❤️
@samarthchandrakantgondhali
@samarthchandrakantgondhali Жыл бұрын
Fabulous teaching sir.........🤟🙏
@zomzhack
@zomzhack 2 жыл бұрын
Very useful video 💯
@goyaldeekshant
@goyaldeekshant 10 ай бұрын
perfect getter setter example
@husnainkylani9447
@husnainkylani9447 2 жыл бұрын
Amaizing !!! ...
@amritosh6214
@amritosh6214 Жыл бұрын
Absolutely fine ❤
@sureshsodha4737
@sureshsodha4737 Жыл бұрын
Thank you sir.
@dushyantpatel6678
@dushyantpatel6678 Жыл бұрын
best video ,,,I am from Ahmedabad...keep it up......Thanks
@hoshiyartewatia4959
@hoshiyartewatia4959 2 жыл бұрын
Durgesh bhai Amazing 👏
@roxbury664
@roxbury664 2 жыл бұрын
Hello sir whats Difference between intilize ojbect through constructor vs setter method
@ashishpandey9887
@ashishpandey9887 2 жыл бұрын
your video is very helpful
@susmitapatil4847
@susmitapatil4847 2 жыл бұрын
Really helpful video
@ghosh9390
@ghosh9390 Жыл бұрын
Nice explanation
@amitnehete7349
@amitnehete7349 Жыл бұрын
Very nice explanation 👌
@CodeCraze99
@CodeCraze99 2 жыл бұрын
thanks dogesh bhai.....................i got it
@raushansinghrana9048
@raushansinghrana9048 2 жыл бұрын
Hi Durgesh Sir Can you make a video on Spring MVC with sts Or explain some concept like controller, Dao, DaoImpl, Dto Or Dtl?
@VIPINkumar-hx9sf
@VIPINkumar-hx9sf 2 жыл бұрын
Sir aap bahut achhe se samjhate ho
@MuhammadUmairShaykh
@MuhammadUmairShaykh Жыл бұрын
Excellent
@SandeepKumar-so2st
@SandeepKumar-so2st 2 жыл бұрын
Thanks for this video
@haroonafridi7746
@haroonafridi7746 2 жыл бұрын
Wow nice sir ..me from pakistan sir .apne bhut ache tariqe sy explain kiya .
@bishamkhatri6956
@bishamkhatri6956 2 жыл бұрын
sir are you really great ... i am impres your teaching way... constructor ki bhi ek video bana hai den
@keshavkoli951
@keshavkoli951 2 жыл бұрын
Sir i wanted to know what is the use of constructor and why we use it
@bellalmahtab8220
@bellalmahtab8220 Жыл бұрын
Bahut achaa
@laeeqahmed9526
@laeeqahmed9526 2 жыл бұрын
Thank you!
@Kanha0321
@Kanha0321 2 жыл бұрын
Thank you so much sir ❤️
@mrider8702
@mrider8702 2 жыл бұрын
which data type should to store @,#,$ like special characters?
@darsh9192
@darsh9192 Жыл бұрын
Thanks bhai❤
@yashthakur872
@yashthakur872 Жыл бұрын
Why we use default constructor if we are already using an argument constructor?? Plz make video on it
@azimbihari
@azimbihari 2 жыл бұрын
nice explation. mumbai se
@nitish2808
@nitish2808 2 жыл бұрын
How do I access a protected getter setter in another package in Java?
@ranatalha8327
@ranatalha8327 2 жыл бұрын
thanks bro i am from italy great video
@vivekprajapati5694
@vivekprajapati5694 2 жыл бұрын
Sir ji ke tutorial to Maggie banane se bi easy h😍
@v2factsandupdates327
@v2factsandupdates327 2 жыл бұрын
Awesome
@theshivrajofficial8444
@theshivrajofficial8444 2 жыл бұрын
Interesting video
@hemantvitthal3732
@hemantvitthal3732 2 жыл бұрын
Perfect
@sumedhtirodkar
@sumedhtirodkar 2 жыл бұрын
Please constructor ke use pe bhi video banao sir..
@superpower6633
@superpower6633 2 жыл бұрын
Thanks...I'm from Gurgaon
@abhisheksamantray5244
@abhisheksamantray5244 Жыл бұрын
thank u Soooomuchhhhhhhh❤❤❤❤❤❤❤❤
@ranjeetrai5550
@ranjeetrai5550 2 жыл бұрын
Yes sir we need constructor video
@bilalnizamani7447
@bilalnizamani7447 2 жыл бұрын
Does it breaking the rules of polymorphisms ?
@GameHub3457
@GameHub3457 2 жыл бұрын
Sir , springboot sikhane ke baad kya servlet & jsp sikhana zaruri he kya
@ravindrakawale5161
@ravindrakawale5161 2 жыл бұрын
please make video on constructor..
@deveshkumar4356
@deveshkumar4356 2 жыл бұрын
hello sir , Exam Portal : Coding Login at Backend using JWT Authentication Spring Security | Spring Security | Examportal #13 is video me token generation me issue araha hai...generate token me username null ajata hai...pls help..bcz baki ka Exam project isse related code based hai
@arunnair7584
@arunnair7584 Жыл бұрын
Name should be a class on its own. It could have lastname, first name, alias etc. Avoid using primitive types.
@BhardwajErSatyam
@BhardwajErSatyam 2 жыл бұрын
Sir all Annotation kase print kr sakte Reflection api
@SandeepKumar-so2st
@SandeepKumar-so2st 2 жыл бұрын
Please make video for plugging datatable in jsp🙏
@saiprasadambrale5369
@saiprasadambrale5369 2 жыл бұрын
Can we have a live implementation of api in java
@andriodtech55
@andriodtech55 2 жыл бұрын
Sir i love this tutorial Encapsulation video create
@deepalikhairnar2771
@deepalikhairnar2771 2 жыл бұрын
Please make video on yguard obfuscation and Proguard obfuscation
@iftekhar_ansari
@iftekhar_ansari 2 жыл бұрын
Haa bhai constructor ka v video banao......by the way ye video bahut helpful tha
@raghunathsutar6973
@raghunathsutar6973 2 жыл бұрын
Durgesh sir....java core basics link is not working...we don't find any videos.. please let us know where we can find java core expalined by you
@adityashankar6884
@adityashankar6884 2 жыл бұрын
Sir AP Please ek video constructor pe banaiye
@ashwanikumarkaushik2531
@ashwanikumarkaushik2531 Жыл бұрын
kzbin.info/www/bejne/b6i9ip6co9CKaMU
@javaautomaddy6916
@javaautomaddy6916 2 жыл бұрын
Nice
@shrirammogal
@shrirammogal 2 жыл бұрын
Sir Mujhe Testing to Development switch karna hai kuch suggestions ?
@shahidanwar6254
@shahidanwar6254 2 жыл бұрын
java, hibernate, spring boot and rest api's........that's all you have to learn to switch to development.
@appsgames3513
@appsgames3513 2 жыл бұрын
Sir please make play list of all this java tutorial
@mayankchauhan9867
@mayankchauhan9867 2 жыл бұрын
Hi sir, my question is that you have made a method display in that also we can give condition then also it will work same
@AbhishekYadav-fx2qp
@AbhishekYadav-fx2qp 2 жыл бұрын
But the values will be set in the variable even though you throw error in display think in a large perspective you cannot check in every method were the variable is used hence it should be validated while creation only ...i think this can be a valid reason please feel free if any correction needed in my understanding
@sabyasachibehera7020
@sabyasachibehera7020 2 жыл бұрын
Thnks sir
@roaming.nomad0
@roaming.nomad0 2 жыл бұрын
Please make series of video on design pattern..
@zomzhack
@zomzhack 2 жыл бұрын
Yes please make
@Kumawat44198
@Kumawat44198 2 жыл бұрын
Yes
@user-ob9oe3mg9q
@user-ob9oe3mg9q Жыл бұрын
hi, durgesh sir , i am from sultanpur........
@ahuramazda1766
@ahuramazda1766 8 ай бұрын
It would be great if you showed example for getters
@debiprasaddash654
@debiprasaddash654 2 жыл бұрын
Sir core java ka real time Jo interview questions ata hai usko discuss kijiye plz
@KumarVikram22
@KumarVikram22 2 жыл бұрын
Sir please make video on apache poi
@mitulbhalani1760
@mitulbhalani1760 Жыл бұрын
good
@GameHub3457
@GameHub3457 2 жыл бұрын
Sir please make level 2 of spring boot microservices
@arghadipbiswas6420
@arghadipbiswas6420 2 жыл бұрын
but if the code has a default constructor which is taking arguments the code also has another way to set the values of the private variable. So what is the solution?
@YT-vx9sz
@YT-vx9sz Жыл бұрын
Bro the default constructor doesn't have any parameters so I think it won't accept any arguments. For parameterized constructor I think we can add validations as well as we added them in setter methods. Correct me if I am wrong
@parmanjosan6687
@parmanjosan6687 2 жыл бұрын
we can also do this using function then why are we using Getter and Setter?
@KashifKhan-tq1um
@KashifKhan-tq1um 2 жыл бұрын
Sir waiting for design patterns and core java
@HarishRathod-yl8nw
@HarishRathod-yl8nw Жыл бұрын
ye to ham constructor se bhi kar sakte hai to getter setter kyun?
@codenaman
@codenaman Жыл бұрын
If condition to aap directly bhi de sakte the jab class variable me value set kar rahe hai without setter getter.. usecase thoda ache example se explain kijiye.
@zeeshanahmad-tx5hw
@zeeshanahmad-tx5hw 2 жыл бұрын
Sir please make some videos on liferay....
@joybratadasgupta5643
@joybratadasgupta5643 2 жыл бұрын
Contsructor ka chaiye or OOPS concepts k upar bhi all in one from zero to hero...pls sir
@shivi2467
@shivi2467 Жыл бұрын
Awesome❤
@mrashid534
@mrashid534 3 ай бұрын
Good
@nimeshpandey4343
@nimeshpandey4343 2 жыл бұрын
Please make a video on how to make an exe file through install4j I need to know
@grv999
@grv999 2 жыл бұрын
Please correct me If I am wrong. You defined getter and setter method and for displaying you just directly accessing instance variables by its name, So what is the use of getter method then? Is it need to be call inside display method instead of directly accessing variables?
@ahmedbasha6527
@ahmedbasha6527 Жыл бұрын
Same question
@adityasrivastav0222
@adityasrivastav0222 Жыл бұрын
Getter used for return the data which is set by setter
@grv999
@grv999 Жыл бұрын
@@adityasrivastav0222 I know that but in his video, He ain't used/called getter method anywhere in the code. He only defined getter method and didn't called anywhere in the code, Then when to use/call getter method?
@anirbanmanna2897
@anirbanmanna2897 2 жыл бұрын
I got this question in interview.
@vikas_roy_v1
@vikas_roy_v1 2 жыл бұрын
I'm waiting for constructor video.
@madhukiranattivilli2321
@madhukiranattivilli2321 Жыл бұрын
Upgrade to "records" (v19 onwards?)... avoid the need to use getters/setters.
@zomzhack
@zomzhack 2 жыл бұрын
Yes make video on constructor
@ashwanikumarkaushik2531
@ashwanikumarkaushik2531 Жыл бұрын
kzbin.info/www/bejne/b6i9ip6co9CKaMU
✅ 5  tips to Master Full Stack Development in Hindi
10:32
Learn Code With Durgesh
Рет қаралды 8 М.
Why i create Multiple Constructor in Class ?
14:02
Learn Code With Durgesh
Рет қаралды 16 М.
Can A Seed Grow In Your Nose? 🤔
00:33
Zack D. Films
Рет қаралды 29 МЛН
ЧУТЬ НЕ УТОНУЛ #shorts
00:27
Паша Осадчий
Рет қаралды 10 МЛН
Smart Sigma Kid #funny #sigma #comedy
00:40
CRAZY GREAPA
Рет қаралды 33 МЛН
Java Optional Class | Hindi
18:18
Learn Code With Durgesh
Рет қаралды 77 М.
Java Tutorial: Access modifiers, getters & setters in Java
12:56
CodeWithHarry
Рет қаралды 605 М.
Getters and Setters Java Tutorial #84
14:12
Alex Lee
Рет қаралды 493 М.
How does HashMap internally works | Java Interview Questions in Hindi
17:04
Learn Code With Durgesh
Рет қаралды 96 М.
P35 - Encapsulation in Java | Core Java | Java Programming |
23:16
H Y R Tutorials - Telugu
Рет қаралды 112 М.
🔥Top Spring Boot Interview Questions [Hindi]
26:02
Learn Code With Durgesh
Рет қаралды 128 М.
Encapsulation in Java - Getter and Setter Methods with Code and Examples
17:43
Can A Seed Grow In Your Nose? 🤔
00:33
Zack D. Films
Рет қаралды 29 МЛН