Java Tutorial-Static Keyword In Java by-Teachmeandroidhub Static Keyword:- First of all we need to know about static .This terms defines stability itself .Suppose your name “ aman” so all the person who knows you they will call you “aman” in case you changed you name then all will call you with new name mean term related with static is common for all object of class. Let discuss with a figure. fig-1 fig-2 According to fig-1 let’s suppose a glass full of water and two person watching this glass after some time someone has drunk some amount of water Now glass is half empty and half filled.as like this when we make a variable static it means it will be available for all objects of class. Static Keyword in Java: Static Is just a keyword in java “keyword” means program don’t need to definition static they just have to use it and meaning of key
Teachmeandroidhub is blog that provides like android,retrofit,volley,facebook,firbase development for android