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 objects in asp.net and tell the purpose of those objects

3 Answers   Ascent, CCS, MTBC,


Which namespace are used for accessing the data?

0 Answers  


Can you please explain the difference between vb and vb.net?

0 Answers  


hey friends, Firstly I pick the records from the database into the DataGridView, Then I want that If I made any changes to the records in the GridView & Click on Update Button, Changes are Reflected into the main Database .Plz do reply back

4 Answers  


Name some of the features present in vb 2005?

0 Answers  






How to run a dos command in vb.net?

0 Answers  


How a base class method is hidden?

0 Answers  


Is VB.NET object oriented? What are the inheritances does VB.NET support ?

13 Answers   Digital GlobalSoft, Global Infotech, Infosys,


Explain the advantages of vb.net?

0 Answers  


How many classes a dll can contain?

0 Answers  


What is the difference between vb 6 and vb.net?

0 Answers  


What are the shared variables?

0 Answers  


Categories