Package Example 1

package pkg1;
public class App1 {
	public void disp() {
		System.out.println("It is disp in pkg1 ");
	}
}

Download

package pkg1;
public class App2 
{
	public static void main(String[] args) 
	{
	App1 a=new App1();
	a.disp();
	}
}

Download

package pkg1.pkg11;

public class App12 {
public void disp1()
{
	System.out.println("It is disp in pkg11");
}
}

Download

Package in Java

Package Example - 1
Package Example - 2


Write your Comment

Name :
Email Id : [ We will not publish your email id ]
Your Comment : [ Maximum 200 chars ]
Enter Security code