//************************************************ 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++; } }//************************************************
@HAPPYGUYFACE Жыл бұрын
you spelled SpongeBob wrong
@mattoucas86910 ай бұрын
@@HAPPYGUYFACE HAHA LOL
@blueturtlekhun2 жыл бұрын
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 Жыл бұрын
A kind of educator you do not want to miss. Thanks Bro.
@nikitos24423 жыл бұрын
Even with my bad english I can understand you better, than my Java teacher in Austria.
@TheOctolink8 ай бұрын
Relatable
@selcandalklc79723 ай бұрын
Hey, i also study computer science in Austria. Where do you study
@naychilinnlatt1092 Жыл бұрын
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.
@gusiwanaga73803 жыл бұрын
+1 to more views! The way you explain is so clean, thanks a ton!
@angelomaminta98793 жыл бұрын
His Playlist deserves more views than this tbh. Thanks A lot man
@mohammadhasan5255 Жыл бұрын
Ditto
@cdjosh35683 жыл бұрын
Another day, another great Java tutorial from Bro Code!
@syedmuhammedabbasrizvi39002 жыл бұрын
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!!!! ❤️❤️❤️❤️❤️❤️❤️❤️😊😊😊😊😊
@professionalaveragekidАй бұрын
probably one of the most comprehensive java tutorials, without cutting corners :D
@firepower012 жыл бұрын
I spent my entire Sunday trying to figure this out. Thank you.
@koolraab Жыл бұрын
Very well explained! Never understood this concept until now. Thank you!
@pavelkvasnicka6856 Жыл бұрын
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
@nikleduc21483 жыл бұрын
Straight up love you man Why is no one else watching your vids
@Omsingh-pc5dbАй бұрын
Honestly man, you are one of the best person to learn coding from. 😊
@jaym43582 жыл бұрын
The best -- no BS -- explanation of the static keyword.
@spyroszviolin3 жыл бұрын
You really enjoy learning programming with this Bro!
@milanincana63956 ай бұрын
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
@khiemdo55272 жыл бұрын
Great courses so far !!! Thanks so much
@user-ms9jq9wg1u Жыл бұрын
I am watching your videos to learn java and it helps a lot. Thank you man!
@ctluwua76953 жыл бұрын
MY support will keep this channel running :)
@liberospirito7840 Жыл бұрын
This was such a great help, thank you so much!
@faris.m172 жыл бұрын
The static keyword took me a long time to understand, your video really helps.
@vimann3 жыл бұрын
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.
@jon_nova10 ай бұрын
Thanks for the tutorial!
@quarduroy1 Жыл бұрын
Great explanation, thank you. Subbed!
@myko_chxn Жыл бұрын
bro ur channel is literally a gold mine
@johanrecaman3 жыл бұрын
thx man, your videos are helping me a lot
@fanBladeOne3 жыл бұрын
Great explanation, thx!
@romandevera78713 жыл бұрын
Good job explaining that Bro!
@mrzetel2 жыл бұрын
Thanks for the wonderful explanation!
@juliarigsby14599 ай бұрын
Bro, you made this so much simpler than two weeks of my professor’s lessons.
@kemann38152 жыл бұрын
Truly the best! Cheers
@viperyogesh76349 ай бұрын
Thx bro didnt understood thru any websites your explanation is simple and clear
@nawazkamboo87503 жыл бұрын
Thank you bro. You're really clearing my doubts
@omersond48913 жыл бұрын
i like your explanations ;)
@jahed13112 жыл бұрын
dude youre great even better than my professor :D Thanks
@RoxioCZE3 жыл бұрын
after 4 years of java i now finally know how static works
@lamias77122 жыл бұрын
explained simplly and clearly!
@mithunram53462 жыл бұрын
Simple and easily understandable , thanks bro ✌
@polimorphic13 Жыл бұрын
Thank you for your fabulous content, bro!
@romanrubanovich92733 жыл бұрын
very good and clear explanation, thank you very much
@frei69132 жыл бұрын
This video made me fall in love with your channel
@JuliHoffman2 жыл бұрын
Thank you!
@sujayirrinki49157 ай бұрын
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.
@femioluwaleye34822 жыл бұрын
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!
@gentle996410 ай бұрын
thank you so much Bro. I saved the entire course
@thomas_1611 Жыл бұрын
Excellent vids. So useful.
@mibo747 Жыл бұрын
perfect explanation... many other didnt really clarified
@hesham47442 жыл бұрын
i wanted to like this vid more than one time 💖✨ keep it up buddy'
@danny.30363 жыл бұрын
Thanks, Bro! ☕ You're awesome!
@abdelmoneimdwedar2157 Жыл бұрын
BRO ............ goddamn you're wonderful, keep it up much much love 💪💪
@roolee43492 жыл бұрын
Great explanation
@Diamond_Hanz3 жыл бұрын
Bro is ultimate bro!
@MendiCaspi2 жыл бұрын
Very clear and helpful
@justinbanza47512 жыл бұрын
Thanks for the video
@drunkrifle Жыл бұрын
You are an OG for this
@FAHGVidz11 ай бұрын
Ur the best bro
@manojkiran55192 жыл бұрын
You're the best......man!!!
@shagunprasad45925 ай бұрын
i couldn't help not commenting lol. thanks for this amazing video bro
@rhomiezhomeboy8270 Жыл бұрын
Thank you for wonderful video
@yagzhandag38033 жыл бұрын
thanks a lot mannn!
@Code-With-Aaron10 күн бұрын
Great videos bro!!
@JonasAnders-kn5yb Жыл бұрын
Thanks, for making this video. It was very helpful!
@ThapeloMachaka256 Жыл бұрын
lifesaver!!
@kiki.t20942 жыл бұрын
Bro you are the best ))
@technorthman2 жыл бұрын
I love learning w this bro
@augischadiegils.51093 жыл бұрын
Nice!!
@nikitamarkovski71212 жыл бұрын
broo that's awesome
@TheEvertonDias Жыл бұрын
Thanks, Bro!
@saricheri4728 Жыл бұрын
Youre the best
@heacac37294 ай бұрын
man what can i say, finally understand this shit thank you my bro, god bless you😭
@danielpaul652 жыл бұрын
Very clearly explained
@Mirtguitar8 ай бұрын
Good tutorial.
@leekbiel Жыл бұрын
Thanks!!
@obalalmeida64192 жыл бұрын
Bro💥
@danishuddin97522 жыл бұрын
great explanantion
@user-st5rp2oj6h Жыл бұрын
Thank you Bro for your effort 👍👍🙏🙏🙏
@Mokataly2 жыл бұрын
Thanks a lot :)
@majid18852 жыл бұрын
Thanks Bro, awesome
@matt_tails Жыл бұрын
finally, a simple explanation of static
@minhtetpaing16953 жыл бұрын
Thank you so much sir.
@pa-3053 жыл бұрын
Best BROOOOOOO
@Simis999 Жыл бұрын
Bro has the power to explain
@azerpashahuseynli4443 жыл бұрын
very useful video
@ysf9423 Жыл бұрын
very good video thanks
@lmao96193 ай бұрын
you are th best \
@sigmamathy3 жыл бұрын
thanks im understand now :)
@mohamedelweshy58503 жыл бұрын
Thanks bro ;)
@hassanejaber687311 ай бұрын
Thank you Bro, by the way which video explains the static classes ?
@avejaymoradillo9 ай бұрын
thanks for sharing
@p4vam91025 күн бұрын
Good Job Bro 💞
@herox68758 ай бұрын
Appriciate the knowledge bro
@computerscience23052 жыл бұрын
Thank u sir
@MateusFerreira-on3kp Жыл бұрын
tanks man, you're helping me so much with yours videos.
@Abaddon-u1i Жыл бұрын
Thank you bro, here's a comment for the algorithm
@huuloc87192 жыл бұрын
Nice.
@danielsavage17843 жыл бұрын
Thanks Bro
@pp81932 жыл бұрын
Dude I could kiss you right now. You probably saved me from failing my OOP class. This video legit changed my life