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
-
30:03
Barstool Chicago
1 day agoEddie Hosts a Bocce Tournament
48.8K3 -
56:10
Michael Franzese
12 hours agoUNBELIEVABLE STORY of becoming a MULTI MILLIONAIRE after discovering a BRAIN TUMOR
64.9K23 -
27:01
Stephen Gardner
1 day ago🔴Kamala BOMBS First Interview, SPIRALS OUT of Control
106K359 -
26:39
MYLUNCHBREAK CHANNEL PAGE
1 day agoOld World Structures in the USA?
87.3K62 -
4:08:40
tacetmort3m
1 day agoPAX WEST 2024 | DAY 2 | IRL STREAM
66.3K1 -
8:50:59
iancrossland
19 hours agoDiablo 4 Live Stream
122K14 -
44:37
TheGetCanceledPodcast
15 hours agoThe GCP Ep. 8 | Mr.Wraptors Talks Global Business, New Locations, Working with Celebrities & More
86.6K6 -
2:00:24
LFA TV
21 hours agoSubverting the West | WHISTLEBLOWERS with AVA CHEN 8/31/24 12pm
115K46 -
1:04:02
I_Came_With_Fire_Podcast
1 day ago"Exposing Political Corruption: Marine Combat Veteran's Fight for Truth in Politics"
83.3K24 -
8:01
PISANITY
1 day agoShoplifting Because They Legalized It
93K48