static & final in java

Java Static & Final

Static: When you declare a variable or a method as Java Static & Final, it belongs to the class, rather than to a specific instance. This means that only one instance of a static member exists, even if you create multiple objects of the class, or if you don’t create any. It will be shared …

Java Static & Final Read More »