Java syntax: Difference between revisions

Content deleted Content added
m linking
Line 1,120:
 
=====Modifiers=====
* '''<code>abstract</code>''' - [[Abstract methodsmethod]]s can be present only in [[abstract classesclass]]es, such methods have no body and must be overridden in a subclass unless it is abstract itself.
* '''<code>static</code>''' - Makes the method static and accessible without creation of a class instance. However static methods cannot access non-static members in the same class.
* '''<code>final</code>''' - Declares that the method cannot be overridden in a subclass.