What is static variable with example?

The static variable can be used to refer to the common property of all objects (which is not unique for each object) , for example, the company name of employees, college name of students, etc. The static variable gets memory only once in the class area at the time of class loading.

Sizin İçin Seçtik  Papara karta ATM'den para yüklenir mi?

Leave a Reply

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