If you modify a variable or method by a static modifier it means there is only one copy of that variable or method shared by all theinstances of that class. A class can not be modified as static,but an inner class.A final variable is just like a constant. It\'s value can not be change once it is initialized. It must be initialized at the time of variable declaration or the constructor completed.
If you modify a variable or method by a static modifier it means there is only one copy of that variable or method shared by all theinstances of that class. A class can not be modified as static,but an inner class.A final variable is just like a constant. It\'s value can not be change once it is initialized. It must be initialized at the time of variable declaration or the constructor completed.