Why it is called static method?

The reason why the main method is a static method is because the Java program is able to directly execute the main method without having to create an object first to call the main method .

Sizin İçin Seçtik  Can you have multiple extends?

Leave a Reply

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