Normally a class member must be accessed only in conjunction with an object of its class. However it is possible to create a member that can be used by itself, without reference to a specific instance. To create such a member precede its declaration with the keyword static. when a member is declared static. it can be accessed before any objects of its class created, and without reference to any object you can declare both methods and variable to be static. The most common example of a static member is main(). main() is declared as static because it must be called before any objects exist.
Instance variables declared as static are, essentially global variables, when objects of its class are declared no copy of a static variable is made. Instead all instances of the class share the same static variable.
On this page of the site you can watch the video online Static variable static methods and static block in java with a duration of hours minute second in good quality, which was uploaded by the user java full stack training 04 August 2019, share the link with friends and acquaintances, this video has already been watched 21 times on youtube and it was liked by like viewers. Enjoy your viewing!