7.13 What is Static Keyword in Java | static method and static variable

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

Static is a keyword used in Java.. It can be applied to a field, a method or an inner class. 
A static field, method or class has a single instance for the whole class that defines it, even if there is
no instance of this class in the program. If you declare any variable as static, it is known static
variable and if you declare any method as static, it is known static method.

Check out our courses:

Coupon: TELUSKO10 (10% Discount)

Coupon: TELUSKO10 (10% Discount)

Coupon: TELUSKO20 (20% Discount)

Udemy Courses:

For More Queries WhatsApp or Call on : +919008963671

Editing Monitors :

Editing Laptop :

Mics

Follow on Facebook:

Subscribe to our other channel:
Telusko Hindi :

Subscribe to the channel and learn Programming in easy way.

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

FINALLY! After all these years someone explains it like a human being not like a computer!!! Thank you!

Alvin-dgpq
Автор

This explanation deserves an award. So many "experienced" people are trying to explain the static concept but fail miserably whereas this video explains it very simply. Thank you!

ShamanRing
Автор

This is the best clear explanation of static methods and variables, thank you Sir...Good one!!

HAROLHIGUERA
Автор

Finally, someone who knows how to explain static in Java thanks so much.

fande
Автор

Thank you so much!!! I hate school so much and school books. There is really nothing about their explanation to consider understandable. But you Telusko really made my day with this video.

pac-sjwepnic
Автор

Ur just an hell of a mentor....Ur just freaking gud at explaining stuffs. .it gets through my brain rather being knocked out by irrelevant Enigma...gud job.!!! sir, , , , these days if u wanna get to know something about java, i just type the sentence at the search box for which I wanna learn about and add a keyword telusko, , to get specified video of yours...tats Ur scope of moving gud with ur work..

nandiniadolf
Автор

Another thing to note:
static variables belong to the class, meaning that if you were to create multiple objects of that class in main, each object's static variables are related. If you change the value of a static variable x in object1 to 2, then all the other objects' (object1, object2, ..., objectn) variable x will be equal to 2. All instances share the same static data field.

thekingofoaoable
Автор

Nice Explanation. After watching tim buchalka's mastercalss video 3 times i had no clue what he was typing at 1000 words per minute. You explained it in a very easy way. God Bless you.

rawalpindiupdates
Автор

i watched a couple of videos for this concept bt wasn't able to understand anything properly. Watched the first 2 minutes of ur video n finally understood the concept. Saw the date when the video was uploaded it was 7 years ago. Loved the simplicity.

shubhamnikale
Автор

Finally I understood what is static variable and method after all these years. Thank you very

jithinis
Автор

finally static versus nonstatic makes sense.
thankyou. you are a wonderful teacher.
i was pulling my hair out trying to find good examples of static versus nonstatic

xoppa
Автор

I saw various videos to learn static keyword but got the answer after whole 24 hours from this video. Thank alot!

usmanzafar
Автор

Man you are a legend! I've been reading text books and not even one of them have the ability to explain the concept like you.

IntahX
Автор

I can't believe that, this video has been viewed 6.870 times but just 36 of them has liked the video! Show some respect for the effort!

yunuskarabash
Автор

This is the best explanation in the simplest way possible. After trying several videos, finally this is the one that helped me understand ..Thank you so much!

dilshadmarium
Автор

Thanks Telusko, you are helping novice programmers in 2021!!

fortnitenoobie
Автор

Thank you so much!!! This explanation was very helpful to me and I actually understand what static means. I was trying to find an explanation everywhere and this one made the most sense, thank you!

qiltz
Автор

Awesome explanation... clear, concise and informative

namrathan
Автор

well explained! better than my professor at explaining alot of concepts on java....

zmoney
Автор

Hast uns geholfen, obwohl du Inder bist. Danke für diese neue Erfahrung!

rafaelkaschuba