Skip to main content

Access Specifiers, Attributes and Methods in JAVA

Body

Access Specifiers, Attributes and Methods in JAVA

In this part of the tutorial you will learn. 1) What are the Access Specifiers in JAVA and how we use them? 2) What are the attributes in JAVA and how we use them? 3) What are the Methods in JAVA and their use? What are the Access Specifiers in JAVA and their use? The access to the contents of the class’s attribute and the methods is determined by the access specifiers. There are three kinds of access specifiers • Public • Protected • Private By using the public keyword against the name of class, attribute or method we declare

Add new comment

Screenshot