|
|
|
|
|
|
|
|
|
|
|
|
|
|
JAVA PROGRAMMING
The static keyword Normally a class member must be accesses only in conjunction with an object of its class. However it is possible to create a member that can be used by itself, without reference to a specific instance. To create such a member, precede its declaration by static keyword. Method declared as static have several restrictions:
The final keyword The final keyword has slightly different meanings depending on the context, but in general it says "This cannot be changed." You might want to prevent changes for two reasons: design or efficiency. Because these two reasons are quite different, it's possible to misuse the final keyword.
|
|
||||||||
|
|
||||||||||
|
|
||||||||||
|
|
||||||||||
|
|
||||||||||
|
|