Java Static – Variable, Method, Block, Class and Import Statement
Static keyword in java can be applied on variables, methods, blocks, import and inner classes. Learn the effect of using static keyword in detail.
Static keyword in java can be applied on variables, methods, blocks, import and inner classes. Learn the effect of using static keyword in detail.
The static import statements import the static fields and methods from a class and allow them to be used without the class reference.
Declaring similar static methods in parent and child classes is called method hiding. For non-static methods, it is method overriding.
HowToDoInJava provides tutorials and how-to guides on Java and related technologies.
It also shares the best practices, algorithms & solutions and frequently asked interview questions.