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

Answer Posted / 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       View All Answers


Please Help Members By Posting Answers For Below Questions

What are the objects in asp.net?

545


What are the differences between c# and visual basic.net?

531


What is globalization?

553


What is the differnce between managed code and unmanaged code?

541


Explain convert.tostring and i.tostring method?

529






Why should you use delegate?

475


What is vb.net used for?

552


Why do you need Lock in Visual Basic?

613


What is stack used for in vb. Net?

534


What are the shared variables?

555


What do you mean by Redim in VB.NET?

672


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

460


Can you please explain the difference between value and reference types?

527


How to view an assembly?

596


What is the exact defination of object?

577