private keyword in access specifier:

private attribute access in only in one class in one package
If another package try to access private member of present class ,then it will throw compile time error

package abc;
class college{
    private String name="Javaonexperiance";
    }
	
          

class student{
	   public static void main(String args[]){
	     
		 college c=new college();
		 System.out.println(c.name);
		 
		 }
}
          

output:
 compile time error
 throw private member of one class cannot acces in another class
          

Address

Plot number-56/1
Near Gurudwara
LandMark :
Opposite A.N.D college
Govindpuri Metro station
New Delhi
Mobile number:
8826034620