Both are known access modifiers in Java doing different functionalities (used for different jobs). static: static keyword can be applied to instance variables and methods but not to classes. When applied, variables and methods can be called without the help of an object. When a method or variable is called without object, encapsulation is not […]
↧