Log in or register to post comments Yes, Using static block we can print something without using main method but the version of java should be 1.6 or less than 1.6 Class Test { static { System.out.println("Vinay") System.exist("0") } } Output: Vinay Tags Java Classes, Methods and Objects Interview Questions Core Java Interview Questions Java Interview Questions