Java: static Keyword
In Java, static keyword is used for memory management mainly. Static elements below to the class. It can apply with:
Static Variable (also known as a class variable)
Static Method (also known as a class method)
Static Block
Static Nested class
Static Import
Note: These static variables and method access by class name it doesn’t require any class instance.
Java Static Variable
A variable declares…
View On WordPress













