Computer Science, asked by mohakdave6, 8 months ago

Can u give an example of static variable in JAVA?

Answers

Answered by ruthvika64
2

Explanation:

1) Java static variable

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.

Similar questions