Does Java main have to be in class?

The main method is static , so it doesn’t matter which class holds it.

Sizin İçin Seçtik  How do you create a class array in Java?

Leave a Reply

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