Static vs Non-Static Variables and Methods In Java - Full Simple Tutorial

  Рет қаралды 171,998

Coding with John

Coding with John

Күн бұрын

Пікірлер: 259
@a7mdbest15
@a7mdbest15 6 ай бұрын
Anyone wants to learn java, this is the destination
@gunnerxt
@gunnerxt 11 ай бұрын
Hey John, I truly appreciate the way you explain concepts. There's one aspect I'd hope you cover: Serialization and Deserialization. Thank you for keeping up the good work. You make so many people want to code
@neon0wl2107
@neon0wl2107 11 ай бұрын
1:52 cleared a doubt i have been having for over 5 years. Thanks a lot.
@micleh
@micleh 11 ай бұрын
Just in the nick of time. My students are presently struggling with static and non static and this video might help them look at both concepts from yet another angle. Thanks again for your short but incredibly succinct videos.
@user-jc6es2ku6d
@user-jc6es2ku6d 2 ай бұрын
this is such a live saver for me, who was forced to jump from C to Java, and lost all motivation at the first days via confusion. Now with a better explained Theory and Concepts by you, @Josh, it is strarting to make sense and become understandable, and i also tend to like it more, eventhough i do bad with a little more abstract languages. thanks :)
@lootster
@lootster 2 ай бұрын
This 11 mins video probably saves you HOURS of research on the internet what the keyword Static means, you're the best John! 👏
@SupahBro535
@SupahBro535 4 ай бұрын
Java was the one language I was intimidated and frustrated with, until I found your channel. Then it became my favorite language to work with!
@toby9999
@toby9999 3 күн бұрын
I'm in the same boat, but I'm transitioning from 30 years as a C++ developer. My brain is a little too old and stuck in the C++ mindset.
@matiloki
@matiloki 7 ай бұрын
My goodness, years using it without knowing how to explain this to other people. Now I can teach it. Thanks!!!
@yoyomaster223
@yoyomaster223 6 ай бұрын
Relearning Java right now after close to 8 years never touching it. I remember never understanding what static meant and how it was used. Gave me so much grief trying to figure it out. Been debugging a few if statements today for close to 5 hours, come to find out it had to do with needing a static declaration. Long story short, found this video and everything finally made sense! Thank you!
@GabrielLima-yq6qp
@GabrielLima-yq6qp 11 ай бұрын
how did you know that i needed this video? your content is so amazing keep going
@CodingWithJohn
@CodingWithJohn 11 ай бұрын
I have eyes everywhere 👀
@erikseyranyan5490
@erikseyranyan5490 8 ай бұрын
Love you bro. You are the best teacher. Understand your videos are very easy your methods of teaching are the best@@CodingWithJohn
@muhammetalimutlu6748
@muhammetalimutlu6748 7 ай бұрын
@@CodingWithJohn mr you are great thank you
@LANternFly1001
@LANternFly1001 5 ай бұрын
@@CodingWithJohn I pray for your codiness Saint John.
@kingslymatthew5586
@kingslymatthew5586 11 ай бұрын
Your contents are easy to follow & understand. Thanks John.✌🏼
@yte6598
@yte6598 11 ай бұрын
Finding your channel is luck for me! I had avoided to learn Java because of difference from any other language and stream of fearful keywords. But thanks to your teaching that anyone can understand and well-made examples in your videos and courses, I could understand what mean of keywords and how to code in Java. Not only that, I find attraction of Java and enjoy coding with it! I sincerely hope to see your videos more. Thanks!
@sgretsch
@sgretsch 10 ай бұрын
These lectures are the best ones that I've seen on the Internet, even compared with L/U big monsters. Not only knowledge, but hidden rocks that you can collide with, everything explained. Thanks to the author!
@akshitmittal1251
@akshitmittal1251 2 ай бұрын
U have very POSITIVE vibe. There are v less people like u. Thanks for all tutorials
@olivierbegassat851
@olivierbegassat851 10 ай бұрын
Those explanations are crystal clear ... You are an amazing teacher, and those lessons are invaluable 😃
@eyupdeli7860
@eyupdeli7860 8 күн бұрын
you literally made everyting crystal clear in my mind, thanks a lot
@user-rm4oq9uh8j
@user-rm4oq9uh8j 5 ай бұрын
John, you're the man!!! I have finished a bootcamp and learned core Java in 3 months from zero. Now, after a year, going through all the topics with your videos is perfecting my knowledge and making me feel more comfortable with things that I've learned. Your efforts in sharing your knowledge are very much appreciated!
@Kuba200411
@Kuba200411 11 ай бұрын
Hi John! Could you do some videos about design patterns like Singleton, and others?
@timmann109
@timmann109 11 ай бұрын
Best description I have seen on this topic. Thanks
@andyhicks3472
@andyhicks3472 7 ай бұрын
This is the clearest explanation of static I have come across. Thank you!
@davod9638
@davod9638 9 ай бұрын
Hey John, Can you make a video about Java modules? Really important, thank you. You are the best!
@tshepisoseabi1069
@tshepisoseabi1069 4 ай бұрын
You have no idea how long I've been struggling to understand this, thank you John.
@magadiflo-dev
@magadiflo-dev 11 ай бұрын
He really has a simple and very understandable way of explaining these concepts. Thank you very much for sharing them. Greetings from Peru
@solvejtodd2960
@solvejtodd2960 3 ай бұрын
THE Best explanation of this on the internet.
@MooseAntlers-ym4de
@MooseAntlers-ym4de 4 ай бұрын
WHY ARE YOUR VIDEOS SO GOOD AND EASY TO UNDERSTAND DO YOU KNOW HOW MANY PEOPLE YOU HAVE SAVED THANK YOU SO MUCH 🙏🙏🙏🙏🙏🙏🙏
@Askalon08
@Askalon08 9 ай бұрын
Can you pls make a video about modules in Java? ur the best❤
@srishtijoshi5980
@srishtijoshi5980 2 ай бұрын
Your examples are spot on. Its easy to understand the difficult concept when you explain it.
@growmoreyt4192
@growmoreyt4192 Ай бұрын
This clears everything about static and non-static.
@Ironman-sn4ct
@Ironman-sn4ct 9 ай бұрын
Hey Sir! I am from India and I am learning java by watching your videos ❤❤ Thank you Sir 😊😊
@gabrielfono844
@gabrielfono844 6 ай бұрын
Sir I am going to lie you are absolutely amazing. I taught programming 3 years ago and I have been working professionally for almost two years. always your videos are amazing. Thanks so much.
@cvl--
@cvl-- 11 ай бұрын
I've learned by the terms "static"/"instance" when talking about methods and variables. I think it is less confusing than static or non-static, specially for beginners.
@gaetanolopez7779
@gaetanolopez7779 6 ай бұрын
I utilized your content as a reference for my university assignment, citing it in APA format. Your material was incredibly helpful, simplifying complex concepts for easy comprehension. Hopefully, the university won't find any issues with my referencing!
@user-rm1cq1kx4b
@user-rm1cq1kx4b 11 ай бұрын
This is a very good video. I used to abuse the "static" keyword, and it caused so many bugs that I am only now beginning to understand 3 years into my coding. Lol
@DejiAdegbite
@DejiAdegbite 8 ай бұрын
Here's me shouting at you in the comments: GREAT VIDEO. I LOVE THAT YOUR VIDEOS ARE SHORT, SIMPLE AND STRAIGHT TO THE POINT. 😄
@Carll19
@Carll19 5 ай бұрын
Before your video, I felt the same, now finally ‘static’ is clear for me, thanks!
@Hassan-lv9di
@Hassan-lv9di 8 ай бұрын
Simplicity, straight forward, depth.. yep that's CodingWithJohn ! I love you man! KEEP UP THE HARD WORKING
@armenuhiyeghoyan5419
@armenuhiyeghoyan5419 3 ай бұрын
Your English is perfect.The best one for me to develop speaking skills.
@bioblade87
@bioblade87 10 ай бұрын
Someone told me that Static is the same as the "Shared" keyword in VB. Calling it "Shared" instantly made sense to me as opposed to "Static". Goes without saying, great video and breakdown of the topic.
@jessicar5549
@jessicar5549 10 ай бұрын
John. I just need to say I am so thankful I’ve run across your channel. Thank for educating us all!!!
@aryehabowitz2321
@aryehabowitz2321 11 күн бұрын
amazing video very clear and articulate which is needed to understand this concept
@AdrianTregoning
@AdrianTregoning 11 ай бұрын
Pure gold, that made it easy to understand. Thanks John.
@noumansaiyed343
@noumansaiyed343 13 күн бұрын
Amazing explanation 🎉I clear my doubt after watching this video
@chaitanya.g-4531
@chaitanya.g-4531 23 күн бұрын
THANKS JHON! ur class was amazing.
@petrliszok9519
@petrliszok9519 11 ай бұрын
wow... In my 33, I am trying ro change my career and learn to code and your videos are literally saving my a...! :)
@CodingWithJohn
@CodingWithJohn 11 ай бұрын
Good luck, you can do it!
@petrliszok9519
@petrliszok9519 11 ай бұрын
@@CodingWithJohn Thanks!
@Avinash-fm6we
@Avinash-fm6we 4 ай бұрын
It was a very good video for anyone to understand Static vs Non-Static Variables and Methods In Java.
@iddiramadhani5111
@iddiramadhani5111 28 күн бұрын
This is real well understood, thanks bro.
@ahmedbilal018
@ahmedbilal018 14 күн бұрын
best explanation so far
@Shamim-oh8rw
@Shamim-oh8rw 7 ай бұрын
I'm from lran and I don't know English pretty much but you speak simply and I understand it keep going my friend ❤
@yashponam1055
@yashponam1055 Ай бұрын
Watching the whole series as a preparation for interviews
@SupahBro535
@SupahBro535 4 ай бұрын
Literally better than all my comp sci profs
@Aporajita_.29
@Aporajita_.29 5 ай бұрын
I'm in 10th grade rn and this video of yours has helped me alot Thank you John
@kraxmalism
@kraxmalism 8 ай бұрын
it is no longer confusing after this video. appreciated!
@rudranighoshroy8412
@rudranighoshroy8412 4 күн бұрын
I was working on Token Management and this asaved me :)
@kevinkoomson7873
@kevinkoomson7873 4 ай бұрын
This is gold. Thanks John
@JuanRamirez-fx3tf
@JuanRamirez-fx3tf 11 ай бұрын
Evening John, I've been following you since I started a Java course this summer. I've finished a project using static, I use the concept, but I do no know why. I am going to enjoy this video.
@Ivan-kh3gn
@Ivan-kh3gn 10 ай бұрын
Hey John! I've got a question for you 🙃 My java teacher told me that using the keyword break anywhere but in switch() is a bad practise. Why is that? It works fine in any loop and I've always used it that way. Could that be a subject for new video? Or perhaps an answer to this comment x) Love your videos! You really are great explaining :) Thanks!
@yashsureka9552
@yashsureka9552 5 ай бұрын
you teach so difficult concepts so easily
@domnulpufosila434
@domnulpufosila434 9 ай бұрын
You have my like, not because you explain this concept so well, cause you do. But because of the way you "miau".
@gnair9064
@gnair9064 11 ай бұрын
Hi john, i was working as a junior java developer 10 years ago. Due to the lack if child care u could nit get back to work. But now am trying to get back to work. Can you please give me aome advice so i can kick start. I watch your videos and am so grateful for all those vidoes. Please keep posting
@jerrygord3131
@jerrygord3131 2 ай бұрын
This was extremely helpful, thank you so much!
@helloworld4147
@helloworld4147 10 ай бұрын
John- the God of coding!
@NalbertWattam
@NalbertWattam 11 ай бұрын
What about static/non-static methods and variables in a Spring environment, where there's @Component, @Service, @RestController, etc? Prime work as always!
@gajananmahajan1081
@gajananmahajan1081 6 ай бұрын
John, could you please create a video on Comparator and Comparable in Java?
@rachiimade4073
@rachiimade4073 5 ай бұрын
it was a very clear explanation ,thank for your efforts for making this get sence.
@cyberkiller83
@cyberkiller83 11 ай бұрын
Hi john, as always, amazing video. You miss two things thought. 1 Miss to mention that when you create static members of a class, the system automatically make those instances one they are used the first time. 2 MIss to mention the static code blocks static { } and how this code blocks are called the first time a static member is called, so those can be used like some kind of constructor. Great videos!
@dzeremi1625
@dzeremi1625 3 ай бұрын
nice, goated explanation
@prashantbharti2650
@prashantbharti2650 8 ай бұрын
Such simple and accurate concepts should be present for all blooming buds😇
@vogiansatnaaihonglien6780
@vogiansatnaaihonglien6780 11 ай бұрын
Thanks a lot for your video! Tbh i was stuck with the same problem of not able to access the rest controller class in Spring since non-static class and method cannot be access without instantiated, so after i watched your video i went to look back at some information and found out that you can just autowired the class object from the beginning :v You really helped me pointing out the vagueness of my understanding about all this static non-static thing, thank you!
@raderadovanovic9052
@raderadovanovic9052 11 ай бұрын
Very nice explanation. Keep up with a good work John!
@lucostz
@lucostz 3 ай бұрын
Super clear, thanks!
@davidorevic6651
@davidorevic6651 9 ай бұрын
Thank you so much John!I was questioning myself a lot regarding this matter 💥
@KARTIKKUMAR-vm8ht
@KARTIKKUMAR-vm8ht 10 ай бұрын
Hey jhon, i have seen most of your videos on java and they are good. I have a request Please make videos on spring and spring boot as well
@donaldbunce2741
@donaldbunce2741 8 ай бұрын
John, this is an excellent explanation! I'm grateful.
@Goooogle
@Goooogle 10 ай бұрын
You are a good teacher
@Hianfita
@Hianfita 6 ай бұрын
Best explanation I've ever heard! Thanks a lot!!!!
@shahabshafiee3333
@shahabshafiee3333 11 ай бұрын
Best Java channel ever.
@christo4520
@christo4520 5 ай бұрын
Another amazingly explained concept man!!!
@JossinJax
@JossinJax 16 күн бұрын
Well done sir, well done.
@Do11an
@Do11an 5 ай бұрын
Perfect video, thank you!
@phoenixaki3458
@phoenixaki3458 11 ай бұрын
As a Java instructor who literally just today tried and failed to explain static/nonstatic to people, I wish I had seen this released hours before my class, I could've just played it instead 😂 I think on its own it's not a difficult concept, it just requires good examples and is much harder to explain with just words alone.
@nihill4048
@nihill4048 11 ай бұрын
usage of static fields inside the constructor and accessing them through getter method is the key point for me in this video.. sometimes i try to access fields directly 😂 thank you for alarming my senses
@TerryPlays
@TerryPlays 11 ай бұрын
Great to see you back with a new video! Thanks
@katiaobraztsova7582
@katiaobraztsova7582 7 ай бұрын
Everything seems easier when explained with cats :)) Thank you so much for your videos!
@tissemyren
@tissemyren 11 ай бұрын
Can you do a video about the `protected` keyword please?
@64_bit_coding
@64_bit_coding 11 ай бұрын
just like public and private keywords, protected means it's only visible in subclasses and that package.
@derechtepilz
@derechtepilz 11 ай бұрын
"protected" is basically a package-private keyword. By default, variables and methods that are "protected", can only be accessed from the same package. However, if you choose to implement a subclass of a class containing protected methods and/or variables, that class is able to access these methods and/or variables even if the subclass is not in the same package as the superclass.
@mayurpatel481
@mayurpatel481 10 ай бұрын
It was very nicely explained. Thanks John.
@Sagittarius182
@Sagittarius182 5 ай бұрын
Very nice explanation. Thank you very much 😸👌
@jayt675
@jayt675 7 ай бұрын
Extremely helpful.
@lootster
@lootster 11 ай бұрын
There's nothing to shout except to praise! LIKE!
@sandra_witch
@sandra_witch 7 ай бұрын
You're a great teacher, thank you so much!
@mathewajayi2482
@mathewajayi2482 8 ай бұрын
❤ Thank you for this...the concept is so much simpler.
@amaralensheriff
@amaralensheriff 7 ай бұрын
Awesome John, please keep on doing more such great contents.
@ArrowGearhead
@ArrowGearhead 11 ай бұрын
Your face looks you are tired on this video, but your content is gold as always.
@lemagamy
@lemagamy 11 ай бұрын
great video John, your yt channel and videos are amazing!
@thiagogo1995
@thiagogo1995 7 ай бұрын
Great video! Very easy to understand. Thank you very much.
@jonathan2350
@jonathan2350 7 ай бұрын
Thanks, understood it!
@BryanChance
@BryanChance 9 ай бұрын
Thank you for such a great tutorial and even making the font bigger so we all can see. You'd be surprised how many just use the regular size font. LOL
@The_Native
@The_Native 4 ай бұрын
10:16 CAR!
@julie3447
@julie3447 10 ай бұрын
I like how u make it so simple. thank u so much
@Maros554
@Maros554 5 ай бұрын
In my UNI they explained this so badly... Thank you!
@GurudattaPraharaj
@GurudattaPraharaj 8 ай бұрын
Good explanation. But We also need to consider Threads before declaring global variables static / non static
@toby9999
@toby9999 3 күн бұрын
Only when multithreading. But that's too advanced for this video, right?
Generics In Java - Full Simple Tutorial
17:34
Coding with John
Рет қаралды 1 МЛН
ROLLING DOWN
00:20
Natan por Aí
Рет қаралды 11 МЛН
هذه الحلوى قد تقتلني 😱🍬
00:22
Cool Tool SHORTS Arabic
Рет қаралды 54 МЛН
Parenting hacks and gadgets against mosquitoes 🦟👶
00:21
Let's GLOW!
Рет қаралды 13 МЛН
Set and HashSet in Java - Full Tutorial
20:43
Coding with John
Рет қаралды 213 М.
Exception Handling in Java Tutorial
13:20
Coding with John
Рет қаралды 380 М.
Hidden Beauties of Java Enums
22:20
Frank Delporte
Рет қаралды 14 М.
Lambda Expressions in Java - Full Simple Tutorial
13:05
Coding with John
Рет қаралды 733 М.
Array vs. ArrayList in Java Tutorial - What's The Difference?
17:36
Coding with John
Рет қаралды 518 М.
Java's Creators Rejected Multiple Inheritance - Here's Why
13:14
Coding with John
Рет қаралды 68 М.
Learn Any Programming Language In 3 Hours!
22:37
Code With Huw
Рет қаралды 352 М.
Quicksort Sort Algorithm in Java - Full Tutorial With Source
24:58
Coding with John
Рет қаралды 238 М.
Python Vs C++ Vs Java!
4:41
ByteByteGo
Рет қаралды 497 М.
ROLLING DOWN
00:20
Natan por Aí
Рет қаралды 11 МЛН