Static vs Non-Static Variables and Methods In Java - Full Simple Tutorial
Struggling with static vs nonstatic in Java? You found the perfect video!
☕ Complete Java course: https://codingwithjohn.thinkific.com/courses/java-for-beginners
For beginner Java programmers, the concept of static vs nonstatic fields and methods can be incredibly confusing. I know it was for me!
But it doesn't have to be difficult. We'll go over EXACTLY what the difference is, how they're used, and when you should make your methods and fields static or nonstatic in your programs.
Learn or improve your Java by watching it being coded live!
Hi, I'm John! I'm a Lead Java Software Engineer and I've been in the programming industry for more than a decade. I love sharing what I've learned over the years in a way that's understandable for all levels of Java learners.
Let me know what else you'd like to see!
Links to any stuff in this description are affiliate links, so if you buy a product through those links I may earn a small commission.
📕 THE best book to learn Java, Effective Java by Joshua Bloch
https://amzn.to/36AfdUu
📕 One of my favorite programming books, Clean Code by Robert Martin
https://amzn.to/3GTPVhf
🎧 Or get the audio version of Clean Code for FREE here with an Audible free trial
http://www.audibletrial.com/johncleancode
🖥️Standing desk brand I use for recording (get a code for $30 off through this link!)
https://bit.ly/3QPNGko
📹Camera I use for recording:
https://amzn.to/3wlXcmR
🎙️Microphone I use (classy, I know):
https://amzn.to/3AYGdbz
Donate with PayPal (Thank you so much!)
https://www.paypal.com/donate/?hosted_button_id=3VWCJJRHP4WL2
00:00 What Non-Static means
03:34 What Static means
05:53 Why can't I access my Non-Static variable?
08:42 Using Static for Constants
10:30 When to make something Static or Non-Static?
☕Complete Java course:
https://codingwithjohn.thinkific.com/courses/java-for-beginners
-
8:50
Good Kid Productions
15 hours agoWhy Soldiers Miss War - With Sebastian Junger (Convo)
16.8K4 -
LIVE
SNEAKO
9 hours agoSneako x Zherka back in Miami
8,992 watching -
4:02:35
Fresh and Fit
1 day agoWho Killed JFK: The Biggest Coverup In American History With Cory Hughes
158K100 -
31:53
Afshin Rattansi's Going Underground
20 hours agoMax Blumenthal: ‘TARGETED FOR EXPOSING ISRAEL’S LIES’- The Washington Post Attacks The Grayzone
31.5K12 -
8:36
Adam Does Movies
7 hours agoThe Bikeriders Movie Review - It's Not What You Think
37.3K7 -
1:00:52
Man in America
12 hours agoMartin Armstrong: The Need WW3 to Mask Dollar Collapse & Force CBDC
47.9K27 -
54:47
Alexis Wilkins
15 hours agoBetween the Headlines with Alexis Wilkins: Brilyn Hollyhand's Book, The Youth Vote IS Conservative
36.4K5 -
1:34:07
Kim Iversen
12 hours agoJaw Dropping Footage: Journalist Embedded Himself Within Israeli Nationalists At The Gaza Border.
68.5K132 -
1:46:50
Glenn Greenwald
10 hours agoComedian and Political Analyst Dave Smith on Uniparty Politics, Free Speech Since October 7th, and Libertarianism | SYSTEM UPDATE #287
82.7K177 -
2:00:26
Roseanne Barr
1 day agoDanger Close with Patrick Byrne Part 1 | The Roseanne Barr Podcast #53
94.8K116