RE: What is meant by static variable and static metho...
Static means no need of object.So either it is a static variable or static method no need to create an object of it.jst invoke by the class name.Static variable also posses the quality to have the scope of method in which it is declared& lifetime till prg. is executing.Static variable is initialised only 1 time in complete prg. execution.Ex.int count(){static int a 1;a+ 1;}If a prg is ruuning & calling count for 10 times then the count atlast will be 10 only not 2as static make it to initialise only for the 1st time & then the either the variable scope ended its value remains due to lifetime which equals the app. execution.static methods r methods that can be called onlt from static methods with class name.B'coz of this reason only main method is static as we dont need to make an obj. of class to invoke it from commandline.We do that from class name only & thats the reason we always name the main class the same with which we save it.
RE: What is meant by static variable and static metho...
In java static means common to class not specific to Objects.So static variables and static methods are accessible only by class name and not by objects.