The main Function Once the application object is created, its run loop essentially becomes an infinite loop: the executing thread will never return to main.