View Full Version : Java - A question

01-09-2012, 08:32 AM
Hi All,

I have a question to be answered ..

how can we print a statement in java without using main and static block

01-09-2012, 01:52 PM
What is it you intend to run? main is the entry point to a class, this is required to run your application, even a gui within a jar requires that you specify which class main will be executed.