There are two types of modifiers in Java one is Access modifiers and the other is Non-access modifiers.
Examples of Access Modifiers are:
- private
- public
- protected
- Default (Package)
Examples of non-access modifiers:
- static
- final
- abstract
- synchronized
- native
- transient
- volatile
Some developers or lecturers do term access modifiers as access specifiers but the official name used on books and SUN Microsystem is
"Access Modifiers"Author: Thiagu
No comments:
Post a Comment