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

Answers were Sorted based on User's Feedback



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

Answer / firoz ahmed

Static variable are declared within the procedure.
and it preserves the value of variable.whether is
called 10000 times.no problem.

Is This Answer Correct ?    12 Yes 3 No

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

Answer / sonia

Static variables retains their values even after the
termination of the procedure in which it is declared.

Is This Answer Correct ?    20 Yes 12 No

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

Answer / pratik

Hi,

Static variables are declare through the

Static Var1 as Integer

The scop of the Var1 is within the module where its is
defined

Is This Answer Correct ?    18 Yes 20 No

Post New Answer

More VB.NET Interview Questions

what is common language specification?

0 Answers  


What are the shared variables?

0 Answers  


What are the types of generations in garbage collector?

0 Answers  


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

3 Answers   Infosys,


Described strong typing

0 Answers  


what is commom language runtime?

0 Answers  


What is the main use of a namespace?

0 Answers  


hello friends.. when i deployment my project in the client machine that is successful but whenever i try to run my project using .exe file then it gives me error "<filename>.exe is not a valid win32 application." what i do somebody halp me pls

1 Answers  


Explain the difference between vb.net and c#, related to oops concepts?

0 Answers  


What are option strict and option explicit?

0 Answers  


wht is the use of console application?

3 Answers   MRB,


Explain the difference between datatable and dataset?

0 Answers  


Categories