-
By default all the variables and methods are non-static.
-
Scope of the non-static variables or methods is within the scope of the same object.
-
We can declare variables and methods as static by using static keyword.
-
Scope of the static variables and methods is throughout the transaction.
-
Static variables and methods, we can directly call with class name (we cannot access static variables and methods with object name).