//************************************************ 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
@mattoucas8699 ай бұрын
@@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
@selcandalklc79722 ай бұрын
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.
@firepower012 жыл бұрын
I spent my entire Sunday trying to figure this out. Thank you.
@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!!!! ❤️❤️❤️❤️❤️❤️❤️❤️😊😊😊😊😊
@gusiwanaga73803 жыл бұрын
+1 to more views! The way you explain is so clean, thanks a ton!
@koolraab Жыл бұрын
Very well explained! Never understood this concept until now. Thank you!
@angelomaminta98793 жыл бұрын
His Playlist deserves more views than this tbh. Thanks A lot man
@mohammadhasan5255 Жыл бұрын
Ditto
@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
@jaym43582 жыл бұрын
The best -- no BS -- explanation of the static keyword.
@professionalaveragekid25 күн бұрын
probably one of the most comprehensive java tutorials, without cutting corners :D
@spyroszviolin3 жыл бұрын
You really enjoy learning programming with this Bro!
@khiemdo55272 жыл бұрын
Great courses so far !!! Thanks so much
@ctluwua76953 жыл бұрын
MY support will keep this channel running :)
@user-ms9jq9wg1u Жыл бұрын
I am watching your videos to learn java and it helps a lot. Thank you man!
@faris.m172 жыл бұрын
The static keyword took me a long time to understand, your video really helps.
@Omsingh-pc5db29 күн бұрын
Honestly man, you are one of the best person to learn coding from. 😊
@RoxioCZE3 жыл бұрын
after 4 years of java i now finally know how static works
@milanincana63955 ай бұрын
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
@juliarigsby14598 ай бұрын
Bro, you made this so much simpler than two weeks of my professor’s lessons.
@liberospirito7840 Жыл бұрын
This was such a great help, thank you so much!
@romandevera78713 жыл бұрын
Good job explaining that Bro!
@myko_chxn Жыл бұрын
bro ur channel is literally a gold mine
@omersond48913 жыл бұрын
i like your explanations ;)
@lamias77122 жыл бұрын
explained simplly and clearly!
@johanrecaman3 жыл бұрын
thx man, your videos are helping me a lot
@nawazkamboo87503 жыл бұрын
Thank you bro. You're really clearing my doubts
@viperyogesh76348 ай бұрын
Thx bro didnt understood thru any websites your explanation is simple and clear
@mrzetel2 жыл бұрын
Thanks for the wonderful explanation!
@mithunram53462 жыл бұрын
Simple and easily understandable , thanks bro ✌
@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.
@kemann38152 жыл бұрын
Truly the best! Cheers
@romanrubanovich92733 жыл бұрын
very good and clear explanation, thank you very much
@jon_nova9 ай бұрын
Thanks for the tutorial!
@fanBladeOne3 жыл бұрын
Great explanation, thx!
@roolee43492 жыл бұрын
Great explanation
@MendiCaspi2 жыл бұрын
Very clear and helpful
@jahed13112 жыл бұрын
dude youre great even better than my professor :D Thanks
@quarduroy1 Жыл бұрын
Great explanation, thank you. Subbed!
@frei69132 жыл бұрын
This video made me fall in love with your channel
@justinbanza47512 жыл бұрын
Thanks for the video
@mibo747 Жыл бұрын
perfect explanation... many other didnt really clarified
@polimorphic13 Жыл бұрын
Thank you for your fabulous content, bro!
@thomas_1611 Жыл бұрын
Excellent vids. So useful.
@danny.30363 жыл бұрын
Thanks, Bro! ☕ You're awesome!
@abdelmoneimdwedar2157 Жыл бұрын
BRO ............ goddamn you're wonderful, keep it up much much love 💪💪
@gentle99649 ай бұрын
thank you so much Bro. I saved the entire course
@Diamond_Hanz3 жыл бұрын
Bro is ultimate bro!
@rhomiezhomeboy8270 Жыл бұрын
Thank you for wonderful video
@manojkiran55192 жыл бұрын
You're the best......man!!!
@danielpaul65 Жыл бұрын
Very clearly explained
@JonasAnders-kn5yb Жыл бұрын
Thanks, for making this video. It was very helpful!
@danishuddin97522 жыл бұрын
great explanantion
@sujayirrinki49156 ай бұрын
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.
@Mirtguitar7 ай бұрын
Good tutorial.
@shagunprasad45925 ай бұрын
i couldn't help not commenting lol. thanks for this amazing video bro
@drunkrifle Жыл бұрын
You are an OG for this
@FAHGVidz10 ай бұрын
Ur the best bro
@technorthman2 жыл бұрын
I love learning w this bro
@augischadiegils.51093 жыл бұрын
Nice!!
@avejaymoradillo9 ай бұрын
thanks for sharing
@kiki.t20942 жыл бұрын
Bro you are the best ))
@hesham47442 жыл бұрын
i wanted to like this vid more than one time 💖✨ keep it up buddy'
@azerpashahuseynli4443 жыл бұрын
very useful video
@ThapeloMachaka256 Жыл бұрын
lifesaver!!
@yagzhandag38033 жыл бұрын
thanks a lot mannn!
@ysf9423 Жыл бұрын
very good video thanks
@ericamuhammad59202 жыл бұрын
Thank you!
@pa-3053 жыл бұрын
Best BROOOOOOO
@obalalmeida64192 жыл бұрын
Bro💥
@saricheri4728 Жыл бұрын
Youre the best
@heacac37293 ай бұрын
man what can i say, finally understand this shit thank you my bro, god bless you😭
@user-st5rp2oj6h Жыл бұрын
Thank you Bro for your effort 👍👍🙏🙏🙏
@Simis999 Жыл бұрын
Bro has the power to explain
@nikitamarkovski71212 жыл бұрын
broo that's awesome
@matt_tails Жыл бұрын
finally, a simple explanation of static
@huuloc87192 жыл бұрын
Nice.
@herox68758 ай бұрын
Appriciate the knowledge bro
@batshevachen87892 жыл бұрын
Nice
@christophbruns81272 жыл бұрын
Großartig!
@minhtetpaing16953 жыл бұрын
Thank you so much sir.
@majid18852 жыл бұрын
Thanks Bro, awesome
@TheEvertonDias Жыл бұрын
Thanks, Bro!
@lmao96192 ай бұрын
you are th best \
@Mokataly2 жыл бұрын
Thanks a lot :)
@sigmamathy3 жыл бұрын
thanks im understand now :)
@hassanejaber687310 ай бұрын
Thank you Bro, by the way which video explains the static classes ?
@kingnetwork-85195 ай бұрын
Tnx
@mihanfernando9890 Жыл бұрын
nice
@aydenrl2 жыл бұрын
Godly
@MateusFerreira-on3kp11 ай бұрын
tanks man, you're helping me so much with yours videos.
@computerscience2305 Жыл бұрын
Thank u sir
@leekbiel Жыл бұрын
Thanks!!
@p4vam9104 күн бұрын
Good Job Bro 💞
@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!