ASP.NET 2.0 Question:
Download Questions PDF

How do u declare static variable and how it is declared and what is its lifetime?

ASP.NET 2.0 Interview Question
ASP.NET 2.0 Interview Question

Answer:

By using keyword static before the variable name. Static variable retains the same data throughout the execution of a program.

Download ASP.NET 2.0 Interview Questions And Answers PDF

Previous QuestionNext Question
Explain DIff. between Friend and Protected Friend?How does u get record no from 5 to 15 from a dataset of 100 records?