Java Tutorial For Beginners 22 - 'static' keyword Example in Java

preview_player
Показать описание
★★★Top Online Courses From ProgrammingKnowledge ★★★

★★★ Online Courses to learn ★★★

★★★ Follow ★★★

DISCLAIMER: This video and description contains affiliate links, which means that if you click on one of the product links, I’ll receive a small commission. This help support the channel and allows us to continue to make videos like this. Thank you for the support!
Searches related to java static meaning
static method in java
define static java
difference between static and nonstatic methods in java
use of static in java
when to use static methods in java
how to call static method in java
difference between static method and non static method in java
accessing non static from static method
Рекомендации по теме
Комментарии
Автор

Tutorial 21 & 22 together given excellent explanation for static keyword and how get & set methods populated using  Eclipse IDE features. I like the explanation with the example of Noofstudents static variable and how its value incremented within the  Constructor when students (mark, tom...) added one after other. 

chald
Автор

Claps...for the mentor.... till now i am so clear on everything....Thanks

andy
Автор

good video
please try to increase the frame rate a little bit more so the video doesn't look like it's lagging

AhmadZuman
Автор

Great video. I am taking Java in school and watch these videos a long with the lesson to really understand the concepts.

randyburinsky
Автор

Please increase volume.explanation is excellent

shaikansarbasha
Автор

This was a fairly good explanation, however the calling of methods, static vs. non-static, didn't make too much sense. Maybe I am just now understanding

emilhozan
Автор

It's a good example for 'static', Thanks ^^

MinSkywalker
Автор

important concept, thanks for this sir 👍👍

SmartProgramming
Автор

Great tutorial. It seems like in general, using static variables and methods are more a matter of convenience, that is, everything you can ever want to do can theoretically be done non-statically. I'm curious if this is correct.

jeffreykornhauser
Автор

Thank you for this great video. But Can you please tell me why do we need to use Static keyword, though we can work without non-static? what is the difference between those?

nisargrana
Автор

Hi there, why should we prefer Static over non static, both variable and method wise? Excellent videos BTW

nazarimilad
Автор

make the speed 1.5 and it sounds normal lol

siyuanhuang
Автор

Nice tutorials. Does anyone know what 'This.age' mean? What is the real purpose of 'this'?
thanks all

sunghyunlee
Автор

When are you explaining what does (this) do?Can sb explain me ?

hei
Автор

Awesome videos for beginners. Thank You so much.

satyamgadadas
Автор

Later in the video you declare an instance of the Student class(Mark and Tom) and access the static method of getNoOfStudents which should've been accessed directly via the Class itself  (Student.getNoOfStudent) but you've called it via the instance of that class i.e (tom.getNoOfStudents)so isn't it contradicting with what you've explained in the previous video.

MrHorizonkid
Автор

On line 11 of Student.java, you don't suffer any consequences from removing the static keyword from getNoOfStudents. Why do you still need to include static with it?

MinisterGold
Автор

i dont know why i love you
 may god reward you in judgrment day ameen

bestryfulhd
Автор

What does "this" keyword mean in "this.age" and "this.name" in setter functions?

gautambadri
Автор

Is it necessary to have a method to be static for accessing a static variable ?

bumblebee