I was asked this question in an interview.
How to print message on console without using main() method?
main()
It was possible till java 6 to use System.out.println(); without main(). From java 7 onwards, it is not possible to do it with static block. It will still ask for main method in main class.