Wednesday, 24 May 2017

Q. Why we should create static variable?

Ans. Static variable uses one copy of the variable which exists for a class. Means it doesn’t create duplicate instance variable. If you are using same variable value one, two or more time at the same program we should create their variable value as static. By using Static Key word.

Share this


0 Comments

Advertisement