Well, the same answer to the once-a-week question: yes, but you shouldn't do it.
public class MyClass {
static { System.out.println("They'll kill you for that"); }
}
> i am unable to execute the program ..............i
> think there must be a main method through with the
> program starts
The program can be compiled and run. After running it, you'll see "They'll kill you for that" followed by something like "java.lang.NoSuchMethodError: main" and finally someone with a big Volvo will burst into your room and runs you over.