Can you write a java program which does not have main but it should be executable with out any errors and exception?
Think for a while before read this post....
Yes, You can write a runnable java program which does not have main method at all. This can be done using the static block of the class.