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

Поделиться
HTML-код
  • Опубликовано: 4 окт 2024

Комментарии • 274

  • @a7mdbest15
    @a7mdbest15 8 месяцев назад +79

    Anyone wants to learn java, this is the destination

  • @gunnerxt
    @gunnerxt Год назад +126

    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

  • @lootster
    @lootster 3 месяца назад +6

    This 11 mins video probably saves you HOURS of research on the internet what the keyword Static means, you're the best John! 👏

  • @neon0wl2107
    @neon0wl2107 Год назад +33

    1:52 cleared a doubt i have been having for over 5 years. Thanks a lot.

  • @micleh
    @micleh Год назад +39

    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.

  • @matiloki
    @matiloki 8 месяцев назад +7

    My goodness, years using it without knowing how to explain this to other people. Now I can teach it. Thanks!!!

  • @philb4462
    @philb4462 2 дня назад

    This is fantastic. "Static" has puzzled me for a long time. This is a very clear explanation. Thank you.

  • @SupahBro535
    @SupahBro535 6 месяцев назад +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 Месяц назад

      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.

  • @GabrielLima-yq6qp
    @GabrielLima-yq6qp Год назад +25

    how did you know that i needed this video? your content is so amazing keep going

    • @CodingWithJohn
      @CodingWithJohn  Год назад +23

      I have eyes everywhere 👀

    • @erikseyranyan5490
      @erikseyranyan5490 9 месяцев назад

      Love you bro. You are the best teacher. Understand your videos are very easy your methods of teaching are the best@@CodingWithJohn

    • @muhammetalimutlu6748
      @muhammetalimutlu6748 8 месяцев назад

      @@CodingWithJohn mr you are great thank you

    • @LANternFly1001
      @LANternFly1001 6 месяцев назад

      @@CodingWithJohn I pray for your codiness Saint John.

  • @TimHonisett-m1x
    @TimHonisett-m1x 14 дней назад

    Went back to this video and it didn't disappoint! Clear and straight to the point

  • @yoyomaster223
    @yoyomaster223 8 месяцев назад +1

    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!

  • @akshitmittal1251
    @akshitmittal1251 3 месяца назад +1

    U have very POSITIVE vibe. There are v less people like u. Thanks for all tutorials

  • @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!

  • @eyupdeli7860
    @eyupdeli7860 Месяц назад

    you literally made everyting crystal clear in my mind, thanks a lot

  • @HasanSahin-n8d
    @HasanSahin-n8d 6 месяцев назад

    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!

  • @SacharMolotov
    @SacharMolotov 3 месяца назад +1

    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 :)

    • @lazeatscrayons2426
      @lazeatscrayons2426 9 дней назад

      lol, I've become so accustomed to using the C language that learning Java has been such a headache, glad this man exists

  • @kingslymatthew5586
    @kingslymatthew5586 Год назад +16

    Your contents are easy to follow & understand. Thanks John.✌🏼

  • @petrliszok9519
    @petrliszok9519 Год назад +2

    wow... In my 33, I am trying ro change my career and learn to code and your videos are literally saving my a...! :)

  • @sgretsch
    @sgretsch 11 месяцев назад +7

    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!

  • @Kuba200411
    @Kuba200411 Год назад +21

    Hi John! Could you do some videos about design patterns like Singleton, and others?

  • @tshepisoseabi1069
    @tshepisoseabi1069 5 месяцев назад

    You have no idea how long I've been struggling to understand this, thank you John.

  • @andyhicks3472
    @andyhicks3472 8 месяцев назад +1

    This is the clearest explanation of static I have come across. Thank you!

  • @timmann109
    @timmann109 Год назад +3

    Best description I have seen on this topic. Thanks

  • @olivierbegassat851
    @olivierbegassat851 Год назад +6

    Those explanations are crystal clear ... You are an amazing teacher, and those lessons are invaluable 😃

  • @Carll19
    @Carll19 6 месяцев назад

    Before your video, I felt the same, now finally ‘static’ is clear for me, thanks!

  • @growmoreyt4192
    @growmoreyt4192 2 месяца назад

    This clears everything about static and non-static.

  • @gabrielfono844
    @gabrielfono844 8 месяцев назад

    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.

  • @الهدىهدىالله-ش7ي
    @الهدىهدىالله-ش7ي 15 дней назад

    Clear and beautiful explanation. Thanks

  • @srishtijoshi5980
    @srishtijoshi5980 3 месяца назад

    Your examples are spot on. Its easy to understand the difficult concept when you explain it.

  • @MooseAntlers-ym4de
    @MooseAntlers-ym4de 5 месяцев назад

    WHY ARE YOUR VIDEOS SO GOOD AND EASY TO UNDERSTAND DO YOU KNOW HOW MANY PEOPLE YOU HAVE SAVED THANK YOU SO MUCH 🙏🙏🙏🙏🙏🙏🙏

  • @Ironman-sn4ct
    @Ironman-sn4ct 10 месяцев назад +1

    Hey Sir! I am from India and I am learning java by watching your videos ❤❤ Thank you Sir 😊😊

  • @gaetanolopez7779
    @gaetanolopez7779 7 месяцев назад

    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!

  • @magadiflo-dev
    @magadiflo-dev Год назад +2

    He really has a simple and very understandable way of explaining these concepts. Thank you very much for sharing them. Greetings from Peru

  • @Hassan-lv9di
    @Hassan-lv9di 10 месяцев назад

    Simplicity, straight forward, depth.. yep that's CodingWithJohn !
    I love you man! KEEP UP THE HARD WORKING

  • @AdrianTregoning
    @AdrianTregoning Год назад +2

    Pure gold, that made it easy to understand. Thanks John.

  • @armenuhiyeghoyan5419
    @armenuhiyeghoyan5419 4 месяца назад

    Your English is perfect.The best one for me to develop speaking skills.

  • @davod9638
    @davod9638 11 месяцев назад +4

    Hey John,
    Can you make a video about Java modules? Really important, thank you. You are the best!

  • @aryehabowitz2321
    @aryehabowitz2321 Месяц назад

    amazing video very clear and articulate which is needed to understand this concept

  • @DejiAdegbite
    @DejiAdegbite 9 месяцев назад

    Here's me shouting at you in the comments: GREAT VIDEO. I LOVE THAT YOUR VIDEOS ARE SHORT, SIMPLE AND STRAIGHT TO THE POINT. 😄

  • @ArmenianGenXGuy
    @ArmenianGenXGuy Год назад +1

    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

  • @noumansaiyed343
    @noumansaiyed343 Месяц назад

    Amazing explanation 🎉I clear my doubt after watching this video

  • @iddiramadhani5111
    @iddiramadhani5111 2 месяца назад

    This is real well understood, thanks bro.

  • @Avinash-fm6we
    @Avinash-fm6we 5 месяцев назад

    It was a very good video for anyone to understand Static vs Non-Static Variables and Methods In Java.

  • @bioblade87
    @bioblade87 Год назад

    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 Год назад +1

    John. I just need to say I am so thankful I’ve run across your channel. Thank for educating us all!!!

  • @chaitanya.g-4531
    @chaitanya.g-4531 2 месяца назад

    THANKS JHON! ur class was amazing.

  • @Askalon08
    @Askalon08 11 месяцев назад +3

    Can you pls make a video about modules in Java? ur the best❤

  • @kraxmalism
    @kraxmalism 9 месяцев назад

    it is no longer confusing after this video. appreciated!

  • @cvl--
    @cvl-- Год назад +2

    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.

  • @Aporajita_.29
    @Aporajita_.29 6 месяцев назад

    I'm in 10th grade rn and this video of yours has helped me alot
    Thank you John

  • @Shamim-oh8rw
    @Shamim-oh8rw 8 месяцев назад

    I'm from lran and I don't know English pretty much but you speak simply and I understand it keep going my friend ❤

  • @jerrygord3131
    @jerrygord3131 3 месяца назад

    This was extremely helpful, thank you so much!

  • @kevinkoomson7873
    @kevinkoomson7873 5 месяцев назад

    This is gold. Thanks John

  • @ahmedbilal018
    @ahmedbilal018 Месяц назад

    best explanation so far

  • @lszujo
    @lszujo 22 дня назад

    Java makes sense to me,it's just logical...more than Python ever did....I enjoy your tutorials.great job!Thanks!

  • @lucostz
    @lucostz 4 месяца назад

    Super clear, thanks!

  • @solvejtodd2960
    @solvejtodd2960 4 месяца назад

    THE Best explanation of this on the internet.

  • @skullknightyt
    @skullknightyt 19 дней назад

    After watching this video, wow just wow. You managed to explain better than my professor

  • @rachiimade4073
    @rachiimade4073 6 месяцев назад

    it was a very clear explanation ,thank for your efforts for making this get sence.

  • @yashsureka9552
    @yashsureka9552 6 месяцев назад

    you teach so difficult concepts so easily

  • @Meenimie
    @Meenimie 12 дней назад

    This was helpful. Thank you.

  • @SupahBro535
    @SupahBro535 6 месяцев назад +1

    Literally better than all my comp sci profs

  • @Hianfita
    @Hianfita 7 месяцев назад

    Best explanation I've ever heard! Thanks a lot!!!!

  • @yashponam1055
    @yashponam1055 2 месяца назад +1

    Watching the whole series as a preparation for interviews

  • @christo4520
    @christo4520 6 месяцев назад

    Another amazingly explained concept man!!!

  • @JuanRamirez-fx3tf
    @JuanRamirez-fx3tf Год назад

    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.

  • @domnulpufosila434
    @domnulpufosila434 10 месяцев назад

    You have my like, not because you explain this concept so well, cause you do. But because of the way you "miau".

  • @davidorevic6651
    @davidorevic6651 10 месяцев назад

    Thank you so much John!I was questioning myself a lot regarding this matter 💥

  • @rudranighoshroy8412
    @rudranighoshroy8412 Месяц назад

    I was working on Token Management and this asaved me :)

  • @raderadovanovic9052
    @raderadovanovic9052 Год назад +1

    Very nice explanation. Keep up with a good work John!

  • @Do11an
    @Do11an 6 месяцев назад

    Perfect video, thank you!

  • @codeZarathustra
    @codeZarathustra Год назад

    Thanks very much Jhon.

  • @mayurpatel481
    @mayurpatel481 11 месяцев назад

    It was very nicely explained. Thanks John.

  • @donaldbunce2741
    @donaldbunce2741 9 месяцев назад

    John, this is an excellent explanation! I'm grateful.

  • @Sagittarius182
    @Sagittarius182 6 месяцев назад

    Very nice explanation. Thank you very much 😸👌

  • @thiagogo1995
    @thiagogo1995 8 месяцев назад

    Great video! Very easy to understand. Thank you very much.

  • @jonathan2350
    @jonathan2350 8 месяцев назад

    Thanks, understood it!

  • @Ivan-kh3gn
    @Ivan-kh3gn 11 месяцев назад +1

    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!

  • @dzeremi1625
    @dzeremi1625 4 месяца назад +1

    nice, goated explanation

  • @prashantbharti2650
    @prashantbharti2650 10 месяцев назад

    Such simple and accurate concepts should be present for all blooming buds😇

  • @mathewajayi2482
    @mathewajayi2482 9 месяцев назад

    ❤ Thank you for this...the concept is so much simpler.

  • @TerryPlays
    @TerryPlays Год назад

    Great to see you back with a new video! Thanks

  • @sandra_witch
    @sandra_witch 8 месяцев назад

    You're a great teacher, thank you so much!

  • @vogiansatnaaihonglien6780
    @vogiansatnaaihonglien6780 Год назад

    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!

  • @jayt675
    @jayt675 8 месяцев назад

    Extremely helpful.

  • @julie3447
    @julie3447 11 месяцев назад

    I like how u make it so simple. thank u so much

  • @amaralensheriff
    @amaralensheriff 9 месяцев назад

    Awesome John, please keep on doing more such great contents.

  • @Goooogle
    @Goooogle Год назад

    You are a good teacher

  • @BryanChance
    @BryanChance 10 месяцев назад

    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

  • @wasim_17
    @wasim_17 Год назад

    Nice explanation.

  • @lavanyaan2158
    @lavanyaan2158 2 месяца назад

    Thank you so much for the video🙏🙏🙏

  • @katiaobraztsova7582
    @katiaobraztsova7582 8 месяцев назад

    Everything seems easier when explained with cats :)) Thank you so much for your videos!

  • @nihill4048
    @nihill4048 Год назад

    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

  • @gajananmahajan1081
    @gajananmahajan1081 7 месяцев назад

    John, could you please create a video on Comparator and Comparable in Java?

  • @farhan022692
    @farhan022692 2 месяца назад

    this was great, thanks

  • @lemagamy
    @lemagamy Год назад

    great video John, your yt channel and videos are amazing!

  • @gnair9064
    @gnair9064 Год назад

    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

  • @anghamjbeli3037
    @anghamjbeli3037 Год назад

    great explanation

  • @مُزهِرة-ر4خ
    @مُزهِرة-ر4خ 9 месяцев назад

    That was very informative, thanks a lot

  • @ryyyyy2010
    @ryyyyy2010 11 месяцев назад

    very helpful video. tysm