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.
Sur cette page du site, vous pouvez voir la vidéo en ligne Static variable static methods and static block in java durée heure minute seconde en bonne qualité , qui a été Téléchargé par l'utilisateur java full stack training 04 août 2019, Partagez le lien avec vos amis et connaissances, sur youtube cette vidéo a déjà été regardée 21 fois et il a aimé like téléspectateurs. Bon visionnage!