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

how to connect crystal report with vb.net ?

2 Answers   Patni,


What is sealed class?

0 Answers  


source code for how to login a vb.net application ?

0 Answers   MCN Solutions,


What is the Difference between Overriding and overloading?

31 Answers   Subex, TCS,


In order to get assembly info whcih namespace we should import?

1 Answers  






Explain how to achieve polymorphism in vb.net?

0 Answers  


Explain jit?

0 Answers  


What are the differences between vb.net and c#, related to oops concepts

0 Answers  


Do event have return type?

8 Answers  


Explain namespace?

0 Answers  


What is the difference between convert.tostring and .tostring() method?

0 Answers  


What is the use of system.diagnostics.process class?

0 Answers  


Categories