Java Program to demonstrate packages

Program

package demopack;
public class PackageDemo
{
	public static void main(String[] args)
	{
		System.out.println("Welcome to oodlescoop");
		System.out.println("This is package demo");
	}
}

Output

$ javac -d . PackageDemo.java 
$ java demopack.PackageDemo 
Welcome to oodlescoop
This is package demo