public class Static Test
{
static
{
System.out.println(“Hi there”);
}
public void print()
{
System.out.println(“Hello”);
}
public static void main(String args[])
{
Static Test st1 = new StaticTest();
st1.print();
StaticTest st2 = new StaticTest();
st2.print();
}
}