No - I wonder where you got this idea from. In any non-trivial program, classes are instantiated in almost every method of the program. Can you explain why you think it would be good if classes be instantiated only in main()?