Private: The private access modifier is specified using the keyword private. The methods or data members declared as private are accessible only within the class in which they are declared . Any other class of the same package will not be able to access these members.25 May 2021