STATIC KEYWORD
What is a static variable and what is the use of static keyword...?
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Sandeep Singh ShekhawatPosted May 20, 2013, 2:47 AM
Static variable are those variable that has a fix value for application and can assign by using static constructor and call by class name.
Static keyword denots that these variable intilized when any variable or method of class will call then all variable will be initilized and initilize only single time no matter what we call.
- A constant or type declaration is implicitly a static member.
2. A static member cannot be referenced through an instance. Instead, it is referenced through the type name.Satyapriya NayakPosted May 20, 2013, 2:46 AM