What is Static Variable?


Its Scope will be available through out the life time.

Showing Answers 1 - 1 of 1 Answers

Static variables are classes variables not instance variables.The lifetime extends across the entire run of the program.These variables are instantiated only once for a class. These variables have a single copy in the memory and are shared by all the objects,hence any changes to these variables results in the modification of that variable in all the other objects.

  Was this answer useful?  Yes

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.

 

Related Answered Questions

 

Related Open Questions