BASIC OF JAVA — Access Modifiers in Java | Part 2

--

Access Modifiers in Java

Access Modifiers in Java →

- There are two types of modifier in Java : access modifiers and non-access modiffer. -The access modifiers in Jawa specifies the accessibility or scope of a field, method, constructor or class. We can change the access level of Fiel Constructon method and class by applying the access modifier on it.

- There are four types of Java access modifiers :-

1) Private

→ The access level of a private modifier is only within the class. it cannot be accessed from outside the class. ‘Access Modifiers in Java’

More details visit my site

https://www.httpsnews365oh.com/2023/06/access-modifiers-in-java-part-2.html

--

--