One of the most important topics in java programming language - static
To access static content, one need not create instance of the class
static methods / inner static classes can not access non-static data
if a variable is declarecd as static, only single copy of that variable is created in memory, though, multiple objects of the class are created
static variable is generally used to get the count of number of objects created.
all the above points are demonstrated in this video. Do watch the same
Sur cette page du site, vous pouvez voir la vidéo en ligne Java Programming Tutorials static variables and methods durée heure minute seconde en bonne qualité , qui a été Téléchargé par l'utilisateur T V Rao 12 novembre 2021, Partagez le lien avec vos amis et connaissances, sur youtube cette vidéo a déjà été regardée 52 fois et il a aimé like téléspectateurs. Bon visionnage!