Monday, March 7, 2016

Access Modifiers

Access Modifiers



There are two types of modifiers in java: access modifier and non-access modifier.
The access modifiers specifies accessibility (scope) of a datamember, method, constructor
or class.

There are 4 types of access modifiers:

    private
    default
    protected
    public

There are many non-access modifiers such as static, abstract, synchronized, native,
volatile, transient etc. Here, we will learn access modifiers.

No comments:

Post a Comment