What does static mean in method?

When you declare a variable or a method as static, it belongs to the class, rather than a specific instance . This means that only one instance of a static member exists, even if you create multiple objects of the class, or if you don’t create any.

Sizin İçin Seçtik  What is the use of static in Java?

Leave a Reply

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