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 are the features present in vb 2005?

0 Answers  


When do you use virutal keyword?

0 Answers  


Define manifest?

0 Answers  


Name the two main parts of .net?

0 Answers  


What is sorting in vb?

0 Answers  






How to achieve Polymorphism in VB.Net?

0 Answers  


What are the objects in asp.net and tell the purpose of those objects

3 Answers   Ascent, CCS, MTBC,


How to create Crystal Report in vb.net with coding

1 Answers   A3Logics, Ascent, TCS,


What is the significance of delegates. Where should they be used?

0 Answers  


Which class allows an element to be accessed using unique key?

0 Answers  


I want to sample Hotel management project in vb.net because still now i am doing that project for small hotel....so please send me my email id is jmuthu_pearls@yahoo.com...

4 Answers   Sapphire Comfort Hotel, TATA,


What is the strong name in .net assembly?

0 Answers  


Categories