While final means the last change in the program, static means not changeable at all.
Final as well as static are both Java language keywords. Final means not changeable. A final class cannot be extended with a subclass, a final method cannot be overridden and a final variable cannot change its initialized value.
Static methods cannot change any data and final data are usually defined in the main method after the end of a block.
|