// Java program to illustrate public modifier package one; public class A { public void display() { System.out.println("Welcome to softhunt.net"); } }