|
Access Modifiers |
Non-Access Modifiers (Never Visit Forums About
The Strange Sexual Sciences) |
||||||||||
Public |
Protected |
Default |
Private |
Native |
Volatile |
Final |
Abstract |
Transient |
Static |
Synchronized |
Strictfp |
|
Class |
ü |
- |
ü |
- |
- |
- |
ü |
ü |
- |
ü (nested only) |
- |
ü |
Inner Class |
ü |
ü |
ü |
ü |
- |
- |
ü |
ü |
- |
ü (static nested) |
- |
ü |
Method-Local Class |
- |
- |
- |
- |
- |
- |
ü |
ü |
- |
- |
- |
ü |
Interface |
ü |
ü (nested only) |
- |
ü
(nested only) |
- |
- |
- |
ü |
- |
ü (nested only) |
- |
ü |
Interface Methods |
ü |
- |
- |
- |
- |
- |
- |
ü |
- |
- |
- |
- |
Interface Variables |
ü |
- |
- |
- |
- |
- |
ü |
- |
- |
ü |
- |
- |
Instance Variables |
ü |
ü |
ü |
ü |
- |
ü |
ü |
- |
ü |
- |
- |
- |
Class (static) Variables |
ü |
ü |
ü |
ü |
- |
ü |
ü |
- |
ü |
ü |
- |
- |
Methods |
ü |
ü |
ü |
ü |
ü |
- |
ü |
ü |
- |
ü |
ü |
ü |
Method
Arguments |
- |
- |
- |
- |
- |
- |
ü |
- |
- |
- |
- |
- |
Constructors |
ü |
ü |
ü |
ü |
- |
- |
- |
- |
- |
- |
- |
ü |
Local Variables |
- |
- |
- |
- |
- |
- |
ü |
- |
- |
- |
- |
- |
College Is Useless
Friday, 9 September 2016
Java - Application of Access Modifiers in Java
Subscribe to:
Posts (Atom)