Static in Java Tutorial #75

preview_player
Показать описание

The static keyword in java lets you use global variables without creating the object. Learn how to use static easily in this video.

The java static keyword can be tricky at first... But SURELY you'll get it :) If you followed along, congrats! You learned by-doing!

I hope you enjoyed this tutorial about the static keyword in java! I like to have a nice mix of java tutorials and actual projects for you all :)

Was this able to help you learn static in java? -

Disclosure: The Springboard link provided is linked to my affiliate account & supports the channel.

~

Alex Lee
Рекомендации по теме
Комментарии
Автор

You’re literally the best tutorial person. You don’t assume that people know things, you explain even the basic things and i love that. Thanks so much!

ClaymoreBreakfast
Автор

well "static" makes sense, because it does mean standing still: its in a fixed position in memory and its impossible for it to be instanced like with non static fields

lordmzte
Автор

I'm so happy I found this channel, now I can binge and feel like I'm learning something XD

ghostropes
Автор

How are these tutorials so good? I’ve watched so many Java/Coding tutorials, none have conveyed concepts as clearly and effectively as you

adultishgambino
Автор

Awesome tutorial with great explanation, this is definitely a confusing concept and you make it easier to understand! BTW, static or "stand still" does make sense...the static variable can be used to refer to the common property of all objects (i.e. not unique for each object). For example, the college name of every student for a particular college. Suppose there are 100 students in my college, now all instance data members will get memory each time when the object is created. All students have its unique name, studentID, SSN, etc, so there is an instance variable for each student object. But, "college" refers to the common property of all objects. If we make it static, this field will get the memory only once. Since the static variable gets memory only once in the class area at the time of class loading, it has the advantage to make your program memory efficient (i.e., it saves memory).

echiang
Автор

Yes... Don't quit bro. Usually I don't comment in tutorials but your tutorials did make me comment. Because your way of teaching is simply and straight to the point. Keep up the Good wok.

mohankumartech
Автор

Man, you can't even imagine how helpful your tutorials are! You saved a lot of headaches for me!

vadrudnev
Автор

I think it's called static because it's place in the memory doesn't change or something like that, not sure. Nice video BTW!

mshzmlg
Автор

I'm taking a java class right now and i ALWAYS go to your channel after every lecture to have it reexplained by you. You make it so much easier to understand!

NexxZt
Автор

You deserve the views. You don't assume we know anything and that's what people need. I've learned more from you in 1 week of videos than a full semester at college.

benjaminhill
Автор

Just started learning java, I’ve watched all your tutorials already and they have helped so much . I can’t wait to watch and learn more, keep up the great work!
P.S you have a fantastic way of breaking down each step .

antkiller
Автор

I love this guy so much, he literally explains even the simplest of things and that too it's easy to understand whatever that he's explaining... My favorite content from Alex is the Nested For Loop explanation... Subscribed immediately... The best tutor I've ever seen on YouTube till date.

karthikp
Автор

absolutely love your stuff, i really feel like I’m getting a better understanding of the language because of how you explain each individual part of it. Keep up the good work bro

johnroy
Автор

Why would anyone dislike your videos... your channel is amazing keep doing what you’re doing

shak
Автор

This is literally my new favorite channel! You make the absolute BEST tutorials and nothing else compares. Great job!

InternetUser
Автор

@ Alex, you've been a great help with learning Java in a simple and easy to understand way. Thank you. And, you deserve WAY more support! Thanks again.

muntazimkhan
Автор

Love how you simplify these OOP concepts in Java. Thank you :)!

alejandroirizarrynegron
Автор

Wow, I've been confused about the keyword static for the past 6 months. This finally maked sense! Thank you!

zm
Автор

Thanks for your videos Alex, I am taking intro to CS II and when I am not understanding something I watch your videos and makes it much easier! I always advice people about your channel! Keep doing this great job!

leonardotomasi
Автор

You are the best instructor I've ever seen so far on YT. Thank you Alex for your videos. Keep it up

abrorolimov