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 difference between dispose(), close(), exit(), end()?

0 Answers  


How can I extract the formated word(bold,italic,underline,font,color etc) from the msword file.?

0 Answers  


What is the Difference between Dataset and Datareader?

7 Answers  


Tell me how many .net languages can a single .net dll contain?

0 Answers  


Trace and Debug belongs to which namespaces?

5 Answers  






Write a program that accepts an array of numbers, and two numbers (an element and a position in the array) and inserts the given element into nth position of the array.

2 Answers  


Write the role of new keyword?

0 Answers  


What is writeline in vb.net?

0 Answers  


Explain the use of new keyword?

0 Answers  


What is the difference between Namespace and Assembly?

0 Answers  


what is common type system?

0 Answers  


when we will use console ?

3 Answers  


Categories