Java static keyword ⚡

Поділитися
Вставка
  • Опубліковано 13 жов 2024
  • Java static keyword modifier tutorial explained
    #Java #static #keyword #modifier #tutorial #explained

КОМЕНТАРІ • 229

  • @BroCodez
    @BroCodez  4 роки тому +73

    //************************************************
    public class Main {
    public static void main(String[] args) {

    // static = modifier. A single copy of a variable/method is created and shared.
    // The class "owns" the static member

    Friend friend1 = new Friend("Sponegbob");
    Friend friend2 = new Friend("Patrick");
    Friend friend3 = new Friend("Patrick");

    System.out.println(Friend.numberOfFriends);
    }
    }
    //************************************************
    public class Friend {
    String name;

    static int numberOfFriends;

    Friend(String name){
    this.name=name;
    numberOfFriends++;
    }
    }//************************************************

  • @blueturtlekhun
    @blueturtlekhun 2 роки тому +52

    After all these years of using this modifier, I finally know what it's for. This was the first video I watched, and after this, I knew you were worth clicking that subscribe button. You need more subscribers, bro. Hope you cover more topics in the future.

  • @siddigahmed5200
    @siddigahmed5200 Рік тому +23

    A kind of educator you do not want to miss. Thanks Bro.

  • @nikitos2442
    @nikitos2442 3 роки тому +58

    Even with my bad english I can understand you better, than my Java teacher in Austria.

    • @TheOctolink
      @TheOctolink 11 місяців тому +3

      Relatable

    • @selcandalklc7972
      @selcandalklc7972 5 місяців тому

      Hey, i also study computer science in Austria. Where do you study

  • @naychilinnlatt1092
    @naychilinnlatt1092 Рік тому +9

    You are the first teacher who make me to enjoy in Java. Thank you so much Bro. I saved the entire course and this is the first comment of me after viewing 33 video of this course.

  • @cdjosh3568
    @cdjosh3568 4 роки тому +11

    Another day, another great Java tutorial from Bro Code!

  • @angelomaminta9879
    @angelomaminta9879 4 роки тому +33

    His Playlist deserves more views than this tbh. Thanks A lot man

  • @professionalaveragekid
    @professionalaveragekid 3 місяці тому

    probably one of the most comprehensive java tutorials, without cutting corners :D

  • @pavelkvasnicka6856
    @pavelkvasnicka6856 Рік тому +5

    This is the best Java tutorial for beginners, so you can learn Java and English in one hit. Please keep going! I vote for Java advance tutorial. Thanks a lot Bro

  • @jaym4358
    @jaym4358 2 роки тому +1

    The best -- no BS -- explanation of the static keyword.

  • @syedmuhammedabbasrizvi3900
    @syedmuhammedabbasrizvi3900 2 роки тому +13

    Dude, what an explanation! I am very very happy because I got everything why I clicked this video, I was trying to get some proper understanding about the Static keyword in Java and you helped me. Thank You!!!! ❤️❤️❤️❤️❤️❤️❤️❤️😊😊😊😊😊

  • @milanincana6395
    @milanincana6395 8 місяців тому +1

    I was going through my Java notes about to have a long night. Thanks for making this short and simple and helping me get some rest, bro. Needed it

  • @firepower01
    @firepower01 2 роки тому +5

    I spent my entire Sunday trying to figure this out. Thank you.

  • @gusiwanaga7380
    @gusiwanaga7380 3 роки тому +7

    +1 to more views! The way you explain is so clean, thanks a ton!

  • @Omsingh-pc5db
    @Omsingh-pc5db 3 місяці тому

    Honestly man, you are one of the best person to learn coding from. 😊

  • @koolraab
    @koolraab 2 роки тому +3

    Very well explained! Never understood this concept until now. Thank you!

  • @ctluwua7695
    @ctluwua7695 3 роки тому +2

    MY support will keep this channel running :)

  • @nikleduc2148
    @nikleduc2148 3 роки тому +2

    Straight up love you man
    Why is no one else watching your vids

  • @spyroszviolin
    @spyroszviolin 3 роки тому +1

    You really enjoy learning programming with this Bro!

  • @vimann
    @vimann 3 роки тому +3

    Me watching about an hour of yt videos about static: I don't get it
    It only took reading your definition to understand.
    Thank you so much, your content is so underrated. Liked and subscribed.

  • @myko_chxn
    @myko_chxn Рік тому

    bro ur channel is literally a gold mine

  • @Pzdrs
    @Pzdrs 3 роки тому +2

    after 4 years of java i now finally know how static works

  • @femioluwaleye3482
    @femioluwaleye3482 2 роки тому +1

    Hey I noticed one of your decisions during this video and I thought it was horrible, it made me shudder even.
    When picking the 3rd friend, you picked Squidward....but over Sandy??
    Anyways great video. Thumbs up.
    EDIT: I kept watching and I see you picked her as the fourth friend.
    My point still stands.
    Anyways, thanks again, great video, the explanations were quite practical so it's easy to understand!

  • @viperyogesh7634
    @viperyogesh7634 11 місяців тому

    Thx bro didnt understood thru any websites your explanation is simple and clear

  • @juliarigsby1459
    @juliarigsby1459 11 місяців тому +1

    Bro, you made this so much simpler than two weeks of my professor’s lessons.

  • @faris.m17
    @faris.m17 2 роки тому

    The static keyword took me a long time to understand, your video really helps.

  • @mibo747
    @mibo747 Рік тому +1

    perfect explanation... many other didnt really clarified

  • @sujayirrinki4915
    @sujayirrinki4915 9 місяців тому

    Bro, you resolved confusion I had that I didn't even know I had. I always wondered why people could call methods from the class name and it was such a huge point of confusion. Now I know that when a Class name is used along with a method it was due to the static keyword being used.

  • @TayfunShen
    @TayfunShen Рік тому

    I am watching your videos to learn java and it helps a lot. Thank you man!

  • @hassanejaber6873
    @hassanejaber6873 Рік тому

    Thank you Bro, by the way which video explains the static classes ?

  • @lamias7712
    @lamias7712 2 роки тому +1

    explained simplly and clearly!

  • @frei6913
    @frei6913 2 роки тому

    This video made me fall in love with your channel

  • @romario92730
    @romario92730 3 роки тому +1

    very good and clear explanation, thank you very much

  • @khiemdo5527
    @khiemdo5527 2 роки тому +1

    Great courses so far !!! Thanks so much

  • @abdelmoneimdwedar2157
    @abdelmoneimdwedar2157 2 роки тому

    BRO ............ goddamn you're wonderful, keep it up much much love 💪💪

  • @justinbanza4751
    @justinbanza4751 3 роки тому +1

    Thanks for the video

  • @romandevera7871
    @romandevera7871 3 роки тому +2

    Good job explaining that Bro!

  • @omersond4891
    @omersond4891 3 роки тому +2

    i like your explanations ;)

  • @danielpaul65
    @danielpaul65 2 роки тому

    Very clearly explained

  • @quarduroy1
    @quarduroy1 Рік тому

    Great explanation, thank you. Subbed!

  • @rhomiezhomeboy8270
    @rhomiezhomeboy8270 Рік тому

    Thank you for wonderful video

  • @pp8193
    @pp8193 2 роки тому +2

    Dude I could kiss you right now. You probably saved me from failing my OOP class. This video legit changed my life

  • @avejaymoradillo
    @avejaymoradillo 11 місяців тому

    thanks for sharing

  • @nawazkamboo8750
    @nawazkamboo8750 3 роки тому +1

    Thank you bro. You're really clearing my doubts

  • @ysf9423
    @ysf9423 Рік тому

    very good video thanks

  • @gentle9964
    @gentle9964 Рік тому

    thank you so much Bro. I saved the entire course

  • @johanrecaman
    @johanrecaman 3 роки тому +1

    thx man, your videos are helping me a lot

  • @hesham4744
    @hesham4744 2 роки тому

    i wanted to like this vid more than one time 💖✨ keep it up buddy'

  • @danishuddin9752
    @danishuddin9752 2 роки тому

    great explanantion

  • @shagunprasad4592
    @shagunprasad4592 8 місяців тому

    i couldn't help not commenting lol. thanks for this amazing video bro

  • @НікітаОрлов-с3ч

    2022- you are the best teacher

  • @storiesbeneaththesurface1942
    @storiesbeneaththesurface1942 7 днів тому

    nice video

  • @drunkrifle
    @drunkrifle Рік тому

    You are an OG for this

  • @acのchannel
    @acのchannel 6 місяців тому

    man what can i say, finally understand this shit thank you my bro, god bless you😭

  • @Mirtguitar
    @Mirtguitar 10 місяців тому

    Good tutorial.

  • @mat_tails
    @mat_tails Рік тому

    finally, a simple explanation of static

  • @kemann3815
    @kemann3815 2 роки тому +1

    Truly the best! Cheers

  • @Diamond_Hanz
    @Diamond_Hanz 3 роки тому +1

    Bro is ultimate bro!

  • @Simis999
    @Simis999 2 роки тому

    Bro has the power to explain

  • @mrzetel
    @mrzetel 2 роки тому

    Thanks for the wonderful explanation!

  • @MendiCaspi
    @MendiCaspi 2 роки тому

    Very clear and helpful

  • @MrSalvatorro
    @MrSalvatorro 3 роки тому +5

    What's up Bro! Liking your style a lot!. It Took me a while to grasp difference between static and non-static members.. or class- and instance variables. But with your excellent explaining it finally makes sence. It can get so confusing if you mix field and method variables in the mix,

    • @siddigahmed5200
      @siddigahmed5200 Рік тому

      A kind of educator you do not want to miss. Thanks Bro.

  • @jirimarek2659
    @jirimarek2659 3 роки тому

    Hey UA-cam algorithm!! HERE is where you should pay your attention!!

  • @JonasAnders-kn5yb
    @JonasAnders-kn5yb Рік тому

    Thanks, for making this video. It was very helpful!

  • @roolee4349
    @roolee4349 2 роки тому

    Great explanation

  • @liberospirito7840
    @liberospirito7840 2 роки тому

    This was such a great help, thank you so much!

  • @dianamilenaarchilacordoba4632
    @dianamilenaarchilacordoba4632 Місяць тому

    great video!!! I'm infinitely grateful for your dedication and big heart to share this knowledge with the world. Thank you soo much

  • @jon_nova
    @jon_nova Рік тому

    Thanks for the tutorial!

  • @jan5504
    @jan5504 Рік тому

    so its like an arraylist of methods or variables? is static void better than hashmap when it comes to memory?

  • @fernandoramadhani564
    @fernandoramadhani564 2 місяці тому

    so good

  • @manojkiran5519
    @manojkiran5519 2 роки тому

    You're the best......man!!!

  • @herox6875
    @herox6875 11 місяців тому

    Appriciate the knowledge bro

  • @utku1376
    @utku1376 3 роки тому +1

    Thank you for all Java content
    When i try the reach Math class i receive this error:
    Source not found
    The source attachment does not contain the source for the file Math.class
    You can change the source attachment by clicking Change Attached Source below:

  • @khalidhashimeh
    @khalidhashimeh Рік тому

    Nice

  • @thomas_1611
    @thomas_1611 Рік тому

    Excellent vids. So useful.

  • @fanBladeOne
    @fanBladeOne 3 роки тому +1

    Great explanation, thx!

  • @azerpashahuseynli444
    @azerpashahuseynli444 3 роки тому

    very useful video

  • @MateusFerreira-on3kp
    @MateusFerreira-on3kp Рік тому

    tanks man, you're helping me so much with yours videos.

  • @robertwide6592
    @robertwide6592 2 роки тому

    spasiba

  • @huuloc8719
    @huuloc8719 2 роки тому

    Nice.

  • @polimorphic13
    @polimorphic13 Рік тому

    Thank you for your fabulous content, bro!

  • @IhebChargui-u6u
    @IhebChargui-u6u Рік тому

    Thank you Bro for your effort 👍👍🙏🙏🙏

  • @AntoinesInnovations
    @AntoinesInnovations 2 місяці тому

    Great videos bro!!

  • @Abaddon-u1i
    @Abaddon-u1i Рік тому

    Thank you bro, here's a comment for the algorithm

  • @mithunram5346
    @mithunram5346 2 роки тому

    Simple and easily understandable , thanks bro ✌

  • @mihanfernando9890
    @mihanfernando9890 Рік тому

    nice

  • @technorthman
    @technorthman 2 роки тому

    I love learning w this bro

  • @Andboldquates
    @Andboldquates 2 роки тому

    We need more "Java" videos

  • @pa-305
    @pa-305 3 роки тому

    Best BROOOOOOO

  • @FAHGVidz
    @FAHGVidz Рік тому

    Ur the best bro

  • @jahed1311
    @jahed1311 2 роки тому

    dude youre great even better than my professor :D
    Thanks

  • @p4vam910
    @p4vam910 3 місяці тому

    Good Job Bro 💞

  • @lmao9619
    @lmao9619 5 місяців тому

    you are th best
    \

  • @ThapeloMachaka256
    @ThapeloMachaka256 Рік тому

    lifesaver!!

  • @kiki.t2094
    @kiki.t2094 2 роки тому

    Bro you are the best ))

  • @kingnetwork-8519
    @kingnetwork-8519 8 місяців тому

    Tnx

  • @quanyufeng579
    @quanyufeng579 2 роки тому

    finally understand what is static means

  • @NuanDaa
    @NuanDaa 2 роки тому +2

    Great explanation but i am still confused. I think i am stupid.

  • @saricheri4728
    @saricheri4728 2 роки тому

    Youre the best

  • @DucNguyen-sd4mn
    @DucNguyen-sd4mn Рік тому

    He is just too good at teaching that he forgets how to spell the word "Spongebob" LOL