//************************************************ 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
@mattoucas86911 ай бұрын
@@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.
@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.
@nikitos24423 жыл бұрын
Even with my bad english I can understand you better, than my Java teacher in Austria.
@TheOctolink10 ай бұрын
Relatable
@selcandalklc79724 ай бұрын
Hey, i also study computer science in Austria. Where do you study
@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!!!! ❤️❤️❤️❤️❤️❤️❤️❤️😊😊😊😊😊
@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
@firepower012 жыл бұрын
I spent my entire Sunday trying to figure this out. Thank you.
@cdjosh35684 жыл бұрын
Another day, another great Java tutorial from Bro Code!
@jaym43582 жыл бұрын
The best -- no BS -- explanation of the static keyword.
@Omsingh-pc5db2 ай бұрын
Honestly man, you are one of the best person to learn coding from. 😊
@gusiwanaga73803 жыл бұрын
+1 to more views! The way you explain is so clean, thanks a ton!
@koolraab2 жыл бұрын
Very well explained! Never understood this concept until now. Thank you!
@professionalaveragekid2 ай бұрын
probably one of the most comprehensive java tutorials, without cutting corners :D
@nikleduc21483 жыл бұрын
Straight up love you man Why is no one else watching your vids
@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.
@ctluwua76953 жыл бұрын
MY support will keep this channel running :)
@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!
@spyroszviolin3 жыл бұрын
You really enjoy learning programming with this Bro!
@milanincana63957 ай бұрын
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
@Pzdrs3 жыл бұрын
after 4 years of java i now finally know how static works
@juliarigsby145910 ай бұрын
Bro, you made this so much simpler than two weeks of my professor’s lessons.
@faris.m172 жыл бұрын
The static keyword took me a long time to understand, your video really helps.
@viperyogesh763410 ай бұрын
Thx bro didnt understood thru any websites your explanation is simple and clear
@myko_chxn Жыл бұрын
bro ur channel is literally a gold mine
@TayfunShen Жыл бұрын
I am watching your videos to learn java and it helps a lot. Thank you man!
@frei69132 жыл бұрын
This video made me fall in love with your channel
@mibo747 Жыл бұрын
perfect explanation... many other didnt really clarified
@pp81932 жыл бұрын
Dude I could kiss you right now. You probably saved me from failing my OOP class. This video legit changed my life
@BroCodez2 жыл бұрын
yay!
@heacac37295 ай бұрын
man what can i say, finally understand this shit thank you my bro, god bless you😭
@sujayirrinki49158 ай бұрын
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.
@shagunprasad45927 ай бұрын
i couldn't help not commenting lol. thanks for this amazing video bro
@romario927303 жыл бұрын
very good and clear explanation, thank you very much
@MrSalvatorro3 жыл бұрын
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 Жыл бұрын
A kind of educator you do not want to miss. Thanks Bro.
@omersond48913 жыл бұрын
i like your explanations ;)
@dianamilenaarchilacordoba46328 күн бұрын
great video!!! I'm infinitely grateful for your dedication and big heart to share this knowledge with the world. Thank you soo much
@nawazkamboo87503 жыл бұрын
Thank you bro. You're really clearing my doubts
@romandevera78713 жыл бұрын
Good job explaining that Bro!
@abdelmoneimdwedar2157 Жыл бұрын
BRO ............ goddamn you're wonderful, keep it up much much love 💪💪
@khiemdo55272 жыл бұрын
Great courses so far !!! Thanks so much
@lamias77122 жыл бұрын
explained simplly and clearly!
@avejaymoradillo11 ай бұрын
thanks for sharing
@johanrecaman3 жыл бұрын
thx man, your videos are helping me a lot
@ysf9423 Жыл бұрын
very good video thanks
@rhomiezhomeboy8270 Жыл бұрын
Thank you for wonderful video
@user-yz9cp6fp4k Жыл бұрын
2022- you are the best teacher
@danishuddin97522 жыл бұрын
great explanantion
@Simis9992 жыл бұрын
Bro has the power to explain
@hesham47442 жыл бұрын
i wanted to like this vid more than one time 💖✨ keep it up buddy'
@gentle996411 ай бұрын
thank you so much Bro. I saved the entire course
@mithunram53462 жыл бұрын
Simple and easily understandable , thanks bro ✌
@jahed13112 жыл бұрын
dude youre great even better than my professor :D Thanks
@mrzetel2 жыл бұрын
Thanks for the wonderful explanation!
@mat_tails Жыл бұрын
finally, a simple explanation of static
@JonasAnders-kn5yb Жыл бұрын
Thanks, for making this video. It was very helpful!
@liberospirito78402 жыл бұрын
This was such a great help, thank you so much!
@herox687510 ай бұрын
Appriciate the knowledge bro
@drunkrifle Жыл бұрын
You are an OG for this
@Abaddon-u1i Жыл бұрын
Thank you bro, here's a comment for the algorithm
@justinbanza47513 жыл бұрын
Thanks for the video
@quarduroy1 Жыл бұрын
Great explanation, thank you. Subbed!
@DucNguyen-sd4mn Жыл бұрын
He is just too good at teaching that he forgets how to spell the word "Spongebob" LOL
@khalidhashimeh11 ай бұрын
Nice
@Mirtguitar9 ай бұрын
Good tutorial.
@IhebChargui-u6u Жыл бұрын
Thank you Bro for your effort 👍👍🙏🙏🙏
@utku13763 жыл бұрын
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:
@polimorphic13 Жыл бұрын
Thank you for your fabulous content, bro!
@hassanejaber6873 Жыл бұрын
Thank you Bro, by the way which video explains the static classes ?
@fanBladeOne3 жыл бұрын
Great explanation, thx!
@MendiCaspi2 жыл бұрын
Very clear and helpful
@NuanDaa2 жыл бұрын
Great explanation but i am still confused. I think i am stupid.
@MateusFerreira-on3kp Жыл бұрын
tanks man, you're helping me so much with yours videos.
@jon_nova11 ай бұрын
Thanks for the tutorial!
@Diamond_Hanz3 жыл бұрын
Bro is ultimate bro!
@fernandoramadhani564Ай бұрын
so good
@kemann38152 жыл бұрын
Truly the best! Cheers
@manojkiran55192 жыл бұрын
You're the best......man!!!
@thomas_1611 Жыл бұрын
Excellent vids. So useful.
@danielpaul652 жыл бұрын
Very clearly explained
@AntoinesInnovationsАй бұрын
Great videos bro!!
@roolee43492 жыл бұрын
Great explanation
@mihanfernando9890 Жыл бұрын
nice
@quanyufeng5792 жыл бұрын
finally understand what is static means
@technorthman2 жыл бұрын
I love learning w this bro
@FAHGVidz Жыл бұрын
Ur the best bro
@robertwide65922 жыл бұрын
spasiba
@azerpashahuseynli4443 жыл бұрын
very useful video
@lmao96194 ай бұрын
you are th best \
@danny.30363 жыл бұрын
Thanks, Bro! ☕ You're awesome!
@kiki.t20942 жыл бұрын
Bro you are the best ))
@huuloc87192 жыл бұрын
Nice.
@Andboldquates2 жыл бұрын
We need more "Java" videos
@jan5504 Жыл бұрын
so its like an arraylist of methods or variables? is static void better than hashmap when it comes to memory?
@p4vam9102 ай бұрын
Good Job Bro 💞
@williamhogrider41368 ай бұрын
I want to become a fellow bro
@pa-3053 жыл бұрын
Best BROOOOOOO
@roflath7573 жыл бұрын
When I opened the video I felt like I was on an airplane
@devonfunk59912 жыл бұрын
He just constructed a group of friends
@jirimarek26593 жыл бұрын
Hey KZbin algorithm!! HERE is where you should pay your attention!!