Protected access specifier

college.java

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

student.java

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

output:
Javaonexperiance
          

Address

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