Java Modifier Summary
| Modifier | Used on | Meaning |
| abstract | class
interface method |
Contains unimplemented methods and cannot be instantiated.
All interfaces are abstract. Optional in declarations No body, only signature. The enclosing class is abstract |
| final | class
method field variable |
Cannot be subclassed
Cannot be overridden and dynamically looked up Cannot change its value. static final fields are compile-time constants. Cannot change its value. |
| native | method | Platform-dependent. No body, only signature |
| none(package) | class
interface member |
Accessible only in its package
Accessible only in its package Accessible only in its package |
| private | member | Accessible only in its class(which defins it). |
| protected | member | Accessible only within its package and its subclasses Read the rest of this entry » |