Office Document APIs for .NET
ITIL Career Advice
PMP Career Advice
Android Intel XDK
Welcome Guest !
How many times can a constructor be called during the life time of an object?
on 1/15/2014 | Category:
C# Interview questions
| Views: 6409 |
Select from following answers:
As many times as we call.
As many times before object gets garbage collected.
As many times before object gets deleted.
Static constructors allow you to initialize static variables in a class, or do other things needed to do in a class after it's first referenced in your code. They are called only once each time your program runs.
Static constructors are declared with this syntax, and can't be overloaded or have any parameters because they run when your class is referenced by its name:
Show Correct Answer
Many Interviews |
< Previous :
Output for the following code? namespace Indiabix ...
Next > :
Which of the following is correct with respect to ...
Comments or Responses
Login to post response
More Interview Questions by Kmandapalli
Which of the following is correct with respect to static functions? 1 ...
Which of the following statement is true?
Which of the following statement is true with respect to polymorphism?
Virtual inheritance can be stopped by declaring override as
Security feature that can be applied to .net applications?
The component of the .net framewrok that provides set of classes that ...
What is ngen Utility?
Correct statement about CLR? 1.It provides language neutral developme ...
Latest Interview Questions
What will be the output of below statement? alert(NaN == NaN);
What is the difference between below statement? var func = function ...
What is the best example of Fragment Caching?
Which property is used to bind Repeater Control?
What is the life of a View-State items?
DataSet and DataTable class are present in which NameSpace?
How to set all letters or text in lower-case?
What property do we require to add within the Gridview tags to bind co ...