class static_check
{
static
{
System.out.println("Static block invoked");
}
public static void main(String Dx[])
{
System.out.println("Hello, Main method is invoked");
}
}
{
static
{
System.out.println("Static block invoked");
}
public static void main(String Dx[])
{
System.out.println("Hello, Main method is invoked");
}
}
No comments:
Post a Comment