Sunday, January 11, 2009

Java Modifiers (Java Fundamentals)

There are two types of modifiers in Java one is Access modifiers and the other is Non-access modifiers.

Examples of Access Modifiers are:


  1. private
  2. public
  3. protected
  4. Default (Package)

Examples of non-access modifiers:


  1. static
  2. final
  3. abstract
  4. synchronized
  5. native
  6. transient
  7. 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