Import in java:

For importing file of other package we access ,by using import keyword.

Syntax:


    import package_name.*;
		or		
	import package_name.file_name.*;
          

Difference between package_name and package_name.file_name

* ----------------------->access all file in particular package.
package_name.file_name.*---->access particular file in package.

package abc;
  public class college{
    public Stirng name="IIT";
    public String name1="IIM";
	 
	Void show(){
	  System.out.println("For Technical study" +name+"  "+"for management study"+" "+name1);
	}
}

          

package def;
import abc.*;
   
   class student{
        int id=123;
		String name="sam";
		
		void display(){
		  System.out.println(id+"  "+name);
		  }
		  
	public static void main(String args[]){
	     student s=new student();
		 s.display();
		 
		 college c=new college();
		 c.show();
		}		
	}
	
          

output:
123 sam
For techincal study IIT
For Management study IIM
   
          

Address

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