The understanding of static keyword is so important that we as a java programmer can not imagine a single runnable program in java without a static keyword. If we want to run a small program, we must use either main() method or a static variable/block till JDK 1.6. Even we don't have the static variable/block option to run the program starting JDK 1.7 onward. Therefore, we should know all about the static keyword and keep in mind the significance of 'Static in Java'. We as a Java developer can't leave the static keyword untouched. Hence, we should have a clear understanding of static in java mandatorily. Additionally, the static keyword in java is an important topic in the interview also for
You are here
Home > Posts tagged "why we use static in java"