Can u give an example of static variable in JAVA?
Answers
Answered by
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
Math,
4 months ago
Social Sciences,
4 months ago
Math,
8 months ago
Political Science,
11 months ago
Math,
11 months ago
English,
11 months ago