July 6, 2014
Java non-access modifiers
In this section I will let you know only about the non-access modifiers which are covered by the Java Certification Oca 7 Programmer I exam :
- abstract;
- final;
- static.
A Java developer uses non-access modifiers to assign special privileges, responsibilities, and behavior to the Java types. Usually, non-access modifiers are used to change the default properties of a Java class and its members.
By applying the abstract non-access modifier to the definition of a class, the class will became an abstract class. This will prevent other classes to create objects of this class.