Java Static Keyword from Hogwarts example

Опубликовано: 21 Март 2026
на канале: Sachith Maduranga
43
8

"Static" keyword is used for variables of class specified. When it is used we can use class name instead of object name to assign or change value of that variable.
Static block can be used to assign values for static variables. It will be loaded to class and will be loaded only once.
Here in this video I have taken an example from Harry Potter film to understand better and interestingly. 😊
Hope you liked the video.
Like, Comment & Subscribe the channel. 😊
More videos will be uploaded as soon as possible.
Thank You..