Static keyword in Java | Basics of Java

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

Summary at high level -
Static keyword - used for memory management in java

Use of static keyword as below -
1. static variable :- used to refer to the common property of all objects, gets memory only once in the class area at the time of class loading
2. static method :- method refers to class rather than object, and used to change the value of static variable
3. static block :- Used to initalize the static variable

If you have any technical doubts/query then put comments.

Contact Details for architecture design, coaching, development -
whatsapp - 8600877991
Рекомендации по теме
welcome to shbcf.ru