Can class be declared in main?

The main() method can appear in any class that is part of an application , but if the application is a complex containing multiple files, it is common to create a separate class just for main(). The main class can have any name, although typically it will just be called “Main”.

Sizin İçin Seçtik  Which company gives highest salary in India?

Leave a Reply

Your email address will not be published. Required fields are marked *