Saturday, 16 July 2016

Java Program Without Main Method

With the help of static block user can execute Java Program.

public class WithoutMainMethod {

static{
System.out.println("STATIC BLOCK");
}
public static void main(String[] args) {

}
}


No comments:

Post a Comment