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
By using the public keyword against the name of class, attribute or method we declare