hi,
static is a reserved keyword in
java. a keyword static lets a method run without any instance of the class. Static means behaviour is independent of any instance variable. Math class is example of static.
points to remember regarding static
1) static methods can'ts use non-static methods, either.
2) value is the same for all instances of the class.
3)
static final variables are constants.
4) static variables get default values just like instance variables.
5) static variables are shared.
6) all instances of the same class share a single copy of the static variables.
7) all the static variables is initialized only one time when class is loaded not every time when new instance is made.
Regards,
Nitin