static in simple words means that we are not able to use instance variables(the class variabes)which don't have the word static in the main method or invoking other methods those don't have the word static also in the main method.
you will ask me why??
I will tell you that because the main method has the word static.
you will tell me I don't understand ,..ok fine look at this now, you can create an object in the same class you are working with in the main method to call the methods that don't have the word static by this statment ( object name.metthod name) you will notic that the program runs without any problem why because of the object you created also you can use in the main method the class variables that don't have the word static by (object name . class variable) why again because of the object. however the methods those don't have the word static they are able to use the variable class because they don't have the word static.so what does static mean? it means that no need to create the object as long as both the method and class variables share the same word static
also it means that no need to create object as long as the two methods are static(the first calls the other by mentioning the function name)
hope you understand .
please reply me if not.
thank you.
Reputation Points: 10
Solved Threads: 0
Junior Poster in Training
Offline 66 posts
since Aug 2007