Static keyword in java | Robust Coders

preview_player
Показать описание
Java static keyword
The static keyword in java is used for memory management mainly. We can apply java static keyword with variables, methods, blocks and nested class. The static keyword belongs to the class than the instance of the class.
The static can be: -
Static variable
Static method
static block
Nested class

The static variable can be used to refer the common property of all objects (that is not unique for each object) e.g. company name of employees, college name of students etc.

The static variable gets memory only once in class area at the time of class loading.

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

very nice sir. by this vedios i get all concepts clear about static keyword

monicadeshmukh
Автор

hats off to u sir...so nicely explained all the videos ....must match for all of

sukhpalsingh
Автор

best explanation ever. it is so easy to understand this topic by the way to deliver it

aakanshaagarwal